Elgg\Database\RelationshipsTest::setUp PHP Метод

setUp() защищенный Метод

Create the entities used for each test
protected setUp ( )
    protected function setUp()
    {
        $this->markTestSkipped("Skipped test as Elgg can not yet run PHP Unit tests that interact with the database");
        $this->guids = array();
        $obj1 = new \ElggObject();
        $obj1->save();
        $this->guids[] = $obj1->guid;
        $obj2 = new \ElggObject();
        $obj2->save();
        $this->guids[] = $obj2->guid;
    }