public function testModeOff() { $this->dispatcher->expects($this->once())->method('dispatch')->with($this->equalTo(Events::MAINTENANCE_OFF)); $this->assertTrue($this->mode->off()); }