Ejemplo n.º 1
0
 /** @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()));
 }
Ejemplo n.º 2
0
 protected function getNewContainable()
 {
     return test\Containable::create([]);
 }