forked from acquia/blt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBltTest.php
33 lines (27 loc) · 843 Bytes
/
BltTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
namespace Acquia\Blt\Tests\Blt;
use Acquia\Blt\Tests\BltTestBase;
/**
* Class BLTTest.
*
* Verifies that project structure and configuration matches BLT
* standards.
*/
class BltTest extends BltTestBase {
/**
* Tests Phing pt:create target.
*
* @group blt
*/
public function testBltCreate() {
$this->assertFileExists($this->newProjectDir);
$this->assertFileNotExists($this->newProjectDir . '/install');
$this->assertFileNotExists($this->newProjectDir . '/tests/phpunit/BltTest.php');
$this->assertFileExists($this->newProjectDir . '/vendor');
$this->assertFileNotExists($this->newProjectDir . '/build/tasks/blt.xml');
$this->assertNotContains(
'${project.machine_name}',
file_get_contents($this->newProjectDir . '/docroot/sites/default/settings.php')
);
}
}