| @@ 27-33 (lines=7) @@ | ||
| 24 | * |
|
| 25 | * @covers ::execute |
|
| 26 | */ |
|
| 27 | public function testExecute() |
|
| 28 | { |
|
| 29 | $tester = $this->executeTest(['object' => GridFieldDetailForm::class]); |
|
| 30 | $output = $tester->getDisplay(); |
|
| 31 | $this->assertContains(VersionedGridFieldDetailForm::class, $output); |
|
| 32 | $this->assertContains('silverstripe/versioned', $output); |
|
| 33 | } |
|
| 34 | ||
| 35 | /** |
|
| 36 | * Ensure that the InputArgument for the object is added |
|
| @@ 34-40 (lines=7) @@ | ||
| 31 | $this->assertContains(Logger::class, $output); |
|
| 32 | } |
|
| 33 | ||
| 34 | public function testExecuteWithSilverStripeClass() |
|
| 35 | { |
|
| 36 | $tester = $this->executeTest(['object' => DataObject::class]); |
|
| 37 | $output = $tester->getDisplay(); |
|
| 38 | $this->assertContains(DataObject::class, $output); |
|
| 39 | $this->assertContains('silverstripe/framework', $output); |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * Ensure that the InputArgument for the object is added |
|