123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- declare(strict_types = 1);
- namespace App\Tests\Entity;
- use App\Core\DB\DB;
- use App\Util\GNUsocialTestCase;
- use Jchook\AssertThrows\AssertThrows;
- class GroupTest extends GNUsocialTestCase
- {
- use AssertThrows;
- public function testGetActor()
- {
- $group = DB::findOneBy('local_group', ['nickname' => 'taken_group']);
- $actor = DB::findOneBy('actor', ['nickname' => 'taken_group']);
- static::assertSame($actor, $group->getActor());
- }
- }
|