forked from GNUsocial/gnu-social
[COMPONENT][Group][TESTS] Fix Entity/GroupTest
This commit is contained in:
parent
cac68a6372
commit
0441f030ab
@ -19,10 +19,12 @@ declare(strict_types = 1);
|
||||
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
|
||||
// }}}
|
||||
|
||||
namespace App\Tests\Entity;
|
||||
namespace Component\Group\tests\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Entity\Actor;
|
||||
use App\Util\GNUsocialTestCase;
|
||||
use Component\Group\Entity\LocalGroup;
|
||||
use Jchook\AssertThrows\AssertThrows;
|
||||
|
||||
class GroupTest extends GNUsocialTestCase
|
||||
@ -31,8 +33,8 @@ class GroupTest extends GNUsocialTestCase
|
||||
|
||||
public function testGetActor()
|
||||
{
|
||||
$group = DB::findOneBy('local_group', ['nickname' => 'taken_group']);
|
||||
$actor = DB::findOneBy('actor', ['nickname' => 'taken_group']);
|
||||
static::assertSame($actor, $group->getActor());
|
||||
$group = DB::findOneBy(LocalGroup::class, ['nickname' => 'taken_public_group']);
|
||||
$actor = DB::findOneBy(Actor::class, ['nickname' => 'taken_public_group']);
|
||||
static::assertObjectEquals($actor, $group->getActor());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user