Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Magento PHP Developer????s Guide, 2nd Edition
  • Table Of Contents Toc
  • Feedback & Rating feedback
Magento PHP Developer????s Guide, 2nd Edition

Magento PHP Developer????s Guide, 2nd Edition

By : MacGregor
2 (4)
close
close
Magento PHP Developer????s Guide, 2nd Edition

Magento PHP Developer????s Guide, 2nd Edition

2 (4)
By: MacGregor

Overview of this book

This book is written for PHP developers who are familiar with frameworks such as Zend or CakePHP and want to start developing and working with Magento. No prior knowledge of Magento is required.
Table of Contents (11 chapters)
close
close
10
Index

Creating our first test

Mink tests are also stored in the Test folder; let's create the base skeleton of our Mink test class:

  1. Navigate to the Test folder in our module root.
  2. Create a new directory called Mink.
  3. Inside the Mink directory, create a new PHP class called Registry.php.
  4. Copy the following code at the Registry.php file, located at app/code/local/Mdg/Giftregistry/Test/Mink/Registry.php:
    <?php
    class Mdg_Giftregistry_Test_Mink_Registry extends JR_Mink_Test_Mink 
    {   
        public function testAddProductToRegistry()
        {
            $this->section('TEST ADD PRODUCT TO REGISTRY');
            $this->setCurrentStore('default');
            $this->setDriver('goutte');
            $this->context();
     
            // Go to homepage
            $this->output($this->bold('Go To the Homepage'));
            $url = Mage::getStoreConfig('web/unsecure/base_url');
            $this->visit($url);
            $category = $this->find('css', '...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Magento PHP Developer????s Guide, 2nd Edition
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon