/** @test */ function it_can_use_root_scope() { $inRoot = $this->getNewContainable(); $contained = $this->getNewContainable(); $container = $this->getNewContainer(); $contained->moveToContainer($container); $containables = Containable::inRoot()->get(); $this->assertNull($containables->find($contained->getKey())); $this->assertNotNull($containables->find($inRoot->getKey())); }
protected function getNewContainable() { return test\Containable::create([]); }