tests/Command/Object/ChildrenCommandTest.php 1 location
|
@@ 27-33 (lines=7) @@
|
24 |
|
* |
25 |
|
* @covers ::execute |
26 |
|
*/ |
27 |
|
public function testExecute() |
28 |
|
{ |
29 |
|
$tester = $this->executeTest(['object' => "SilverStripe\Dev\BuildTask"]); |
30 |
|
$output = $tester->getDisplay(); |
31 |
|
$this->assertContains("SilverStripe\Dev\Tasks\CleanupTestDatabasesTask", $output); |
32 |
|
$this->assertContains('silverstripe/framework', $output); |
33 |
|
} |
34 |
|
|
35 |
|
/** |
36 |
|
* Ensure that the InputArgument for the object is added |
tests/Command/Object/ExtensionsCommandTest.php 1 location
|
@@ 27-33 (lines=7) @@
|
24 |
|
* |
25 |
|
* @covers ::execute |
26 |
|
*/ |
27 |
|
public function testExecute() |
28 |
|
{ |
29 |
|
$tester = $this->executeTest(['object' => "SilverStripe\Forms\GridField\GridFieldDetailForm"]); |
30 |
|
$output = $tester->getDisplay(); |
31 |
|
$this->assertContains('SilverStripe\ORM\Versioning\VersionedGridFieldDetailForm', $output); |
32 |
|
$this->assertContains('silverstripe/framework', $output); |
33 |
|
} |
34 |
|
|
35 |
|
/** |
36 |
|
* Ensure that the InputArgument for the object is added |
tests/Command/Object/LookupCommandTest.php 1 location
|
@@ 34-40 (lines=7) @@
|
31 |
|
$this->assertContains("Monolog\Logger", $output); |
32 |
|
} |
33 |
|
|
34 |
|
public function testExecuteWithSilverStripeClass() |
35 |
|
{ |
36 |
|
$tester = $this->executeTest(['object' => "SilverStripe\ORM\DataObject"]); |
37 |
|
$output = $tester->getDisplay(); |
38 |
|
$this->assertContains("SilverStripe\ORM\DataObject", $output); |
39 |
|
$this->assertContains('silverstripe/framework', $output); |
40 |
|
} |
41 |
|
|
42 |
|
/** |
43 |
|
* Ensure that the InputArgument for the object is added |