Pārlūkot izejas kodu

Premier test

feature/souke
Guillaume Bourgeois pirms 9 mēnešiem
vecāks
revīzija
916306ceb1
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. +3
    -2
      tests/codeception/common/unit/ExampleTest.php

+ 3
- 2
tests/codeception/common/unit/ExampleTest.php Parādīt failu

@@ -5,6 +5,7 @@ namespace tests\codeception\common\unit;
//use \Tests\Support\UnitTester;

use domain\Producer\Producer\Producer;
use domain\Producer\Producer\ProducerModule;
use tests\codeception\common\UnitTester;

class ExampleTest extends \Codeception\Test\Unit
@@ -17,8 +18,8 @@ class ExampleTest extends \Codeception\Test\Unit

public function testMe()
{
$producerContainer = ProducerContainer::getInstance();
$producer = $producerContainer->getBuilder()->instanciateProducer();
$producerModule = ProducerModule::getInstance();
$producer = $producerModule->getBuilder()->instanciateProducer();
$this->assertTrue($producer instanceof Producer, 'Producer instancié');
}
}

Notiek ielāde…
Atcelt
Saglabāt