コード例 #1
0
ファイル: ResourceTest.php プロジェクト: GerDner/luck-docker
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     parent::setUp();
     Shopware()->Models()->clear();
     $this->resource = $this->getMockForAbstractClass('\\Shopware\\Components\\Api\\Resource\\Resource');
     $this->resource->setManager(Shopware()->Models());
 }
コード例 #2
0
ファイル: TestCase.php プロジェクト: GerDner/luck-docker
 protected function setUp()
 {
     parent::setUp();
     Shopware()->Models()->clear();
     $this->resource = $this->createResource();
     $this->resource->setManager(Shopware()->Models());
 }