| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | public function testSetup() |
||
| 6 | { |
||
| 7 | $app = new \Slim\App(); |
||
| 8 | $c = $app->getContainer(); |
||
| 9 | |||
| 10 | $boot = new \Aimeos\Slim\Bootstrap( $app, array( 'apc_enabled' => true ) ); |
||
| 11 | $boot->setup( '.' ); |
||
| 12 | |||
| 13 | $this->assertInstanceOf( '\Aimeos\Bootstrap', $c['aimeos'] ); |
||
| 14 | $this->assertInstanceOf( '\Aimeos\Slim\Base\Config', $c['aimeos.config'] ); |
||
| 15 | $this->assertInstanceOf( '\Aimeos\Slim\Base\Context', $c['aimeos.context'] ); |
||
| 16 | $this->assertInstanceOf( '\Aimeos\Slim\Base\Locale', $c['aimeos.locale'] ); |
||
| 17 | $this->assertInstanceOf( '\Aimeos\Slim\Base\I18n', $c['aimeos.i18n'] ); |
||
| 18 | $this->assertInstanceOf( '\Aimeos\Slim\Base\View', $c['aimeos.view'] ); |
||
| 19 | $this->assertInstanceOf( '\Aimeos\Slim\Base\Shop', $c['shop'] ); |
||
| 20 | $this->assertInstanceOf( '\Swift_Mailer', $c['mailer'] ); |
||
| 21 | } |
||
| 42 |