Browse Source

Fixed some OS-dependent checks in tests

tags/3.0.0-alpha1
Alexander Makarov 7 years ago
parent
commit
cc869d2587
No known key found for this signature in database
GPG Key ID: 3617B79C6A325E4A
  1. 6
      tests/framework/console/controllers/HelpControllerTest.php

6
tests/framework/console/controllers/HelpControllerTest.php

@ -63,7 +63,7 @@ class HelpControllerTest extends TestCase
],
]);
$result = Console::stripAnsiFormat($this->runControllerAction('list'));
$this->assertEquals(<<<'STRING'
$this->assertEqualsWithoutLE(<<<'STRING'
cache
cache/flush
cache/flush-all
@ -98,7 +98,7 @@ STRING
],
]);
$result = Console::stripAnsiFormat($this->runControllerAction('list-action-options', ['action' => 'help/list-action-options']));
$this->assertEquals(<<<'STRING'
$this->assertEqualsWithoutLE(<<<'STRING'
action:route to action
--interactive: whether to run the command interactively.
@ -119,7 +119,7 @@ STRING
],
]);
$result = Console::stripAnsiFormat($this->runControllerAction('usage', ['action' => 'help/list-action-options']));
$this->assertEquals(<<<'STRING'
$this->assertEqualsWithoutLE(<<<'STRING'
bootstrap.php help/list-action-options <action>
STRING

Loading…
Cancel
Save