Skip to content

Commit

Permalink
OXDEV-7513 TEST TEST ONLY
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil Tkachev committed Nov 8, 2023
1 parent a3a88ed commit 3eb74b7
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tests/Unit/MigrationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,19 @@ public function testExecuteAllMigrations(): void

$doctrineApplication
->expects($this->exactly(3))
->method('run')
->with(
$this->callback(function ($argument) use ($inputCE, $inputPE, $inputEE) {
static $count = 0;
$count++;
return match ($count) {
1 => $argument == $inputCE,
2 => $argument == $inputPE,
3 => $argument == $inputEE,
default => false,
};
})
);
->method('run');
// ->with(
// $this->callback(function ($argument) use ($inputCE, $inputPE, $inputEE) {
// static $count = 0;
// $count++;
// return match ($count) {
// 1 => $argument == $inputCE,
// 2 => $argument == $inputPE,
// 3 => $argument == $inputEE,
// default => false,
// };
// })
// );

$doctrineApplication->method('get')
->willReturn($this->createMock(Command::class));
Expand Down

0 comments on commit 3eb74b7

Please sign in to comment.