/** * @test */ public function testCannotCreateMultipleGames() { $exception = MessageParserException::cannotCreateMultipleGames(\Mockery::mock(ParsingUser::class)); $this->assertEquals(MessageParserException::CREATE_MULTIPLE, $exception->getCodeName()); }