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