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