Пример #1
0
 /** @test */
 public function mycelium_gets_pointers_pointing_at()
 {
     $pointer = Mycelium::createPointer("gds.one", "gds.bar");
     Mycelium::save();
     $pointer2 = Mycelium::createPointer("gds.two", "gds.bar");
     $pointer2->destroy();
     $pointer3 = Mycelium::createPointer("gds.three", "gds.bar.asd");
     $pointer4 = Mycelium::createPointer("gds.four", "gds.bar.asd");
     $this->assertEquals(1, Mycelium::whatPointsAt("gds.bar")->count());
     $this->assertEquals(2, Mycelium::whatPointsAt("gds.bar.asd")->count());
     $this->assertEquals(0, Mycelium::whatPointsAt("gds.loo")->count());
 }