runPluginRefreshCommand('Database.Tester'); } public function testUniqueTableValidation() { $this->expectException(\October\Rain\Database\ModelException::class); $post = ValidationPost::create([ 'title' => 'This is a new post', 'slug' => 'post-1', 'description' => 'Testing...' ]); $this->assertNotFalse($post); $post2 = ValidationPost::create([ 'title' => 'this is another post with the same slug', 'slug' => 'post-1', 'description' => 'testing....' ]); } }