function it_delete() { $this->delete(1)->shouldBe(true); $this->finder()->count()->shouldBe(0); if (\BX\News\NewsCategoryLink::finder()->count() > 0) { throw new \RuntimeException('Test fall'); } }