Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Commit

Permalink
Cleaned up tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dimsav committed Nov 5, 2014
1 parent e7d5b74 commit 1529530
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions tests/TestCoreModelExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function it_deletes_translations()
/**
* @test
*/
public function it_does_not_delete_translations_when_attempting_to_delete_object_fails()
public function it_does_not_delete_translations_when_attempting_to_delete_translatable()
{
$country = Country::find(1);
$countryId = $country->id;
Expand All @@ -151,19 +151,6 @@ public function it_does_not_delete_translations_when_attempting_to_delete_object
$this->assertEquals(4, count($translations));
}

/**
* @test
*/
public function it_does_not_delete_translations_while_soft_deleting()
{
$country = CountryStrict::find(1);
$before = CountryTranslation::where('country_id', '=', 1)->get();
$country->delete();

$after = CountryTranslation::where('country_id', '=', 1)->get();
$this->assertEquals(count($before), count($after));
}

/**
* @test
*/
Expand Down

0 comments on commit 1529530

Please sign in to comment.