| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 33 | public function test_prepare() |
||
| 34 | { |
||
| 35 | $baseDirectory = '/tmp/FooBundleTest'; |
||
| 36 | $bundle = $this->getMock('Symfony\Component\HttpKernel\Bundle\BundleInterface'); |
||
| 37 | $bundle |
||
| 38 | ->expects($this->any()) |
||
| 39 | ->method('getPath') |
||
| 40 | ->will($this->returnValue($this->bundleDirectory)); |
||
| 41 | $preparationMigrationDirectory = new PreparationMigrationDirectory($baseDirectory, array($bundle)); |
||
| 42 | $preparationMigrationDirectory->prepare(); |
||
| 43 | |||
| 44 | $this->assertTrue($this->fileSystem->exists($this->migrationFiles[0])); |
||
| 45 | $this->assertTrue($this->fileSystem->exists($this->migrationFiles[1])); |
||
| 46 | } |
||
| 47 | } |
||
| 48 |