| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class ProviderTest extends TestCase |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var SimpleProvider |
||
| 14 | */ |
||
| 15 | private $provider; |
||
| 16 | |||
| 17 | protected function setUp() |
||
| 18 | { |
||
| 19 | $this->provider = new SimpleProvider(Product::class); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function testProvide() |
||
| 23 | { |
||
| 24 | $expected = [ |
||
| 25 | 'ns' => 'SlayerBirden\\DFCodeGeneration\\Catalog\\Factory', |
||
| 26 | 'controllerNs' => 'SlayerBirden\\DFCodeGeneration\\Catalog\\Controller', |
||
| 27 | 'entityName' => 'Product', |
||
| 28 | ]; |
||
| 29 | |||
| 30 | $this->assertEquals( |
||
| 31 | $expected, |
||
| 32 | $this->provider->provide() |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function testGetClassName() |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |