public function testSetProductionSkipCompilation() { $this->modeMock->expects($this->once())->method('enableProductionModeMinimal'); $tester = new CommandTester($this->command); $tester->execute(['mode' => 'production', '--skip-compilation' => true]); $this->assertContains("production mode", $tester->getDisplay()); }
public function testExecute() { $currentMode = 'application-mode'; $this->modeMock->expects($this->once())->method('getMode')->willReturn($currentMode); $tester = new CommandTester($this->command); $tester->execute([]); $this->assertContains($currentMode, $tester->getDisplay()); }