Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
vadimjustus
TechDivision_MagentoUnitTesting
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Home
Jump to bottom
Edit
New page
Vadim Justus edited this page
Jun 29, 2014
·
18 revisions
How to
Write a test
Classes and API
Helper
Proxy
Test Cases
Block
ForAbstracts
ForExceptions
FrontController
Helper
Model
Observer
Examples
Mocking
Mage::getModel
Mage::getSingleton
Mage::helper
Mage::getResourceModel
Mage::getResourceSingleton
Mage::getControllerInstance
Mage::getBlockSingleton
Mage::getResourceHelper
Mage::getStoreConfig
Wiki pages
Pages
20
Loading
Home
How to
Classes and API
Examples
Loading
Example mocking Mage getBlockSingleton
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Example mocking Mage getControllerInstance
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Example mocking Mage getModel
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Example mocking Mage getResourceHelper
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Example mocking Mage getResourceModel
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Example mocking Mage getResourceSingleton
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Example mocking Mage getSingleton
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Example mocking Mage getStoreConfig
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Example mocking Mage helper
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Helper proxy
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
How to write a test
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Test case block
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Test case for abstracts
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Test case for exceptions
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Test case front controller
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Test case helper
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Test case model
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Test case observer
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Test cases
Uh oh!
There was an error while loading.
Please reload this page
.
Show 5 more pages…
How to
Write a test
Classes and API
Helper
Proxy
Test Cases
Block
ForAbstracts
ForExceptions
FrontController
Helper
Model
Observer
Examples
Mocking
Mage::getModel
Mage::getSingleton
Mage::helper
Mage::getResourceModel
Mage::getResourceSingleton
Mage::getControllerInstance
Mage::getBlockSingleton
Mage::getResourceHelper
Mage::getStoreConfig
Clone this wiki locally
You can’t perform that action at this time.