public function testNoUniqueViolationWithScope()
 {
     TableWithScopeQuery::create()->deleteAll();
     $t = new TableWithScope();
     $t->setTitle('Hello, World');
     $t->save();
     $this->assertEquals('hello-world', $t->getSlug());
     try {
         $t = new TableWithScope();
         $t->setTitle('Hello, World');
         $t->setScope(1);
         $t->save();
         $this->assertEquals('hello-world', $t->getSlug());
     } catch (Exception $e) {
         $this->fail($e->getMessage());
     }
 }
 public function makeSlugUnique($slug, $separator = '-', $increment = 0)
 {
     return parent::makeSlugUnique($slug, $separator, $increment);
 }