function testInviteCharacterToYourClan() { $clan = ClanFactory::create('someTestClan', ['founder' => 'noone', 'clan_avatar_url' => 'http://example.com/img.png', 'description' => 'SomeDesc']); $error = $clan->invite(new Player($this->char_id), new Player($this->char_id_2)); $this->assertFalse((bool) $error); }