Skip to content

Commit dd76b98

Browse files
committed
Manual changes to Developer module
1 parent 2e0d635 commit dd76b98

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

app/code/Magento/Developer/Test/Unit/Console/Command/DevTestsRunCommandTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function testExecuteBadType()
4848
{
4949
$commandTester = new CommandTester($this->command);
5050
$commandTester->execute([DevTestsRunCommand::INPUT_ARG_TYPE => 'bad']);
51-
$this->assertContains('Invalid type: "bad"', $commandTester->getDisplay());
51+
$this->assertStringContainsString('Invalid type: "bad"', $commandTester->getDisplay());
5252
}
5353

5454
public function testPassArgumentsToPHPUnit()
@@ -64,12 +64,12 @@ public function testPassArgumentsToPHPUnit()
6464
'-' . DevTestsRunCommand::INPUT_OPT_COMMAND_ARGUMENTS_SHORT => '--list-suites',
6565
]
6666
);
67-
$this->assertContains(
67+
$this->assertStringContainsString(
6868
'phpunit --list-suites',
6969
$commandTester->getDisplay(),
7070
'Parameters should be passed to PHPUnit'
7171
);
72-
$this->assertContains(
72+
$this->assertStringContainsString(
7373
'PASSED (',
7474
$commandTester->getDisplay(),
7575
'PHPUnit runs should have passed'
@@ -89,12 +89,12 @@ public function testPassArgumentsToPHPUnitNegative()
8989
'-' . DevTestsRunCommand::INPUT_OPT_COMMAND_ARGUMENTS_SHORT => '--list-suites',
9090
]
9191
);
92-
$this->assertContains(
92+
$this->assertStringContainsString(
9393
'phpunit --list-suites',
9494
$commandTester->getDisplay(),
9595
'Parameters should be passed to PHPUnit'
9696
);
97-
$this->assertContains(
97+
$this->assertStringContainsString(
9898
'FAILED - ',
9999
$commandTester->getDisplay(),
100100
'PHPUnit runs should have passed'

app/code/Magento/Developer/Test/Unit/Console/Command/TablesWhitelistGenerateCommandTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ protected function setUp(): void
4040
* Test case for success scenario
4141
*
4242
* @param string $arguments
43-
* @param string $expected
43+
* @param int $expected
4444
*
4545
* @dataProvider successDataProvider
4646
*/
47-
public function testCommandSuccess(string $arguments, string $expected)
47+
public function testCommandSuccess(string $arguments, int $expected)
4848
{
4949
$this->whitelistGenerator->expects($this->once())
5050
->method('generate')
@@ -59,13 +59,13 @@ public function testCommandSuccess(string $arguments, string $expected)
5959
* Test case for failure scenario
6060
*
6161
* @param string $arguments
62-
* @param string $expected
62+
* @param int $expected
6363
* @param \Exception|ConfigException $exception
6464
* @param string $output
6565
*
6666
* @dataProvider failureDataProvider
6767
*/
68-
public function testCommandFailure(string $arguments, string $expected, $exception, string $output)
68+
public function testCommandFailure(string $arguments, int $expected, $exception, string $output)
6969
{
7070
$this->whitelistGenerator->expects($this->once())
7171
->method('generate')

app/code/Magento/Developer/Test/Unit/Console/Command/XmlConverterCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function testExecute()
7272
XmlConverterCommand::PROCESSOR_ARGUMENT => 'file.xsl'
7373
]
7474
);
75-
$this->assertContains('result', $commandTester->getDisplay());
75+
$this->assertStringContainsString('result', $commandTester->getDisplay());
7676
}
7777

7878
public function testWrongParameter()

0 commit comments

Comments
 (0)