/** * @test * * @group entity * @group group-entity */ public function testThatShortUrlIsDifferent() { $group = new Group(); $group->createShortUrl(); $url1 = $group->getShortUrl(); sleep(1); $group->createShortUrl(); $url2 = $group->getShortUrl(); $this->assertNotEquals($url1, $url2); }