Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Im faced with the same problem, but now I get it worked. I created <strong>app/code/local/Namespace/Module/etc/config.xml</strong> with:</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;config&gt; &lt;phpunit&gt; &lt;suite&gt; &lt;modules&gt; &lt;Namespace_Module/&gt; &lt;/modules&gt; &lt;/suite&gt; &lt;/phpunit&gt; &lt;modules&gt; &lt;namespace_module&gt; &lt;version&gt;0.1&lt;/version&gt; &lt;/namespace_module&gt; &lt;/modules&gt; &lt;global&gt; &lt;models&gt; &lt;eav&gt; &lt;rewrite&gt; &lt;entity_increment_numeric&gt;Namespace_Module_Model_Entity_Increment_Numeric&lt;/entity_increment_numeric&gt; &lt;/rewrite&gt; &lt;/eav&gt; &lt;/models&gt; &lt;/global&gt; &lt;/config&gt; </code></pre> <p>In fact the name of these are not Namespace_Module, I just replaced to show you. Its a module that overrides numeric model from magento, but it has no big differences.</p> <p>See that my test is under <strong>app/code/local/Namespace/Module/Test/Model/Entity/Increment/Numeric.php</strong></p> <p>And looks like:</p> <pre><code>&lt;?php class Namespace_Module_Test_Model_Entity_Increment_Numeric extends EcomDev_PHPUnit_Test_Case { /** * Test Next Id Never Returns zero * * @test */ public function testGetNextIdNeverReturnsZero(){ $this-&gt;assertTrue(true); } } </code></pre> <p>After all set, you should run your tests using the following command on console/terminal:</p> <blockquote> <p>phpunit UnitTests.php</p> </blockquote> <p>Remember that you should enable your module by adding Namespace_Module.xml at app/etc/modules as any other model. My mistake was that i named the folder as Tests instead of Test in my model. I dont think you are doing the same thing...</p> <p>Anyway, I hope it helps. For more information, <a href="http://www.ecomdev.org/2011/05/24/ecomdev_phpunit-manual-version-0-2-0-is-available-for-download.html" rel="nofollow">the manual</a> could help you a lot.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload