protected function setUp()
 {
     $this->p1 = new Priority();
     $this->p2 = new Priority();
     RegistrationListener::addCallback($this->p1, 10);
     RegistrationListener::addCallback($this->p2, 0);
     parent::setUp();
 }
 protected function setUp()
 {
     self::addBaseNamespace('Magium\\Magento');
     parent::setUp();
     $this->setTypePreference('Magium\\Magento\\Actions\\Checkout\\PaymentMethods\\PaymentMethodInterface', 'Magium\\Magento\\Actions\\Checkout\\PaymentMethods\\NoPaymentMethod');
     $this->setTypePreference('Magium\\Magento\\Actions\\Checkout\\ShippingMethods\\ShippingMethodInterface', 'Magium\\Magento\\Actions\\Checkout\\ShippingMethods\\FirstAvailable');
     $this->setTypePreference('Magium\\Themes\\ThemeConfigurationInterface', 'Magium\\Magento\\Themes\\AbstractThemeConfiguration');
     $this->switchThemeConfiguration('Magium\\Magento\\Themes\\Magento19\\ThemeConfiguration');
 }
 protected function setUp()
 {
     $this->p1 = new SecondPriority();
     $this->p2 = new SecondPriority();
     // Note.  Registration callbacks should not be set in a test case.  They should be set in a module's
     // require_once or composer autoload.
     RegistrationListener::addCallback($this->p2, 0);
     RegistrationListener::addCallback($this->p1, 10);
     parent::setUp();
 }
    protected function setUp()
    {
        parent::setUp();
        $content = <<<HTML
<html>
<body>
<div>This is displayed</div>
<div style="display: none; ">This is not displayed</div>
</body>
</html>
HTML;
        $this->_filename = tempnam(sys_get_temp_dir(), 'test');
        file_put_contents($this->_filename, $content);
        $this->commandOpen('file://' . $this->_filename);
    }
    protected function setUp()
    {
        parent::setUp();
        $content = <<<HTML
<html>
<head>
<title> Yelling Children </title> <!-- spaces intentional -->
</head>
<body>
</body>
</html>
HTML;
        $this->_filename = tempnam(sys_get_temp_dir(), 'test');
        file_put_contents($this->_filename, $content);
        $this->commandOpen('file://' . $this->_filename);
    }
 protected function setUp()
 {
     $this->initializer = new EspanolChromeInitializer();
     parent::setUp();
 }
Exemple #7
0
 public function setUp()
 {
     self::markTestSkipped('This test requires individual configuration');
     parent::setUp();
 }
 protected function setUp()
 {
     self::addBaseNamespace('Magium\\Magento');
     RegistrationListener::addCallback(new Registration(), 100);
     parent::setUp();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->baseDir = sys_get_temp_dir();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->switchThemeConfiguration('Tests\\Magium\\Navigators\\ThemeConfiguration');
 }