-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [10.x] Test Improvements Remove deprecated `@test` usage and always prefix test method name with `test`. Signed-off-by: Mior Muhammad Zaki <[email protected]> * Apply suggestions from code review --------- Signed-off-by: Mior Muhammad Zaki <[email protected]>
- Loading branch information
Showing
8 changed files
with
13 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,16 +71,14 @@ protected function schema() | |
return $connection->getSchemaBuilder(); | ||
} | ||
|
||
/** @test */ | ||
public function itPluralizesTheTableName() | ||
public function testItPluralizesTheTableName() | ||
{ | ||
$model = new IrregularPluralHuman; | ||
|
||
$this->assertSame('irregular_plural_humans', $model->getTable()); | ||
} | ||
|
||
/** @test */ | ||
public function itTouchesTheParentWithAnIrregularPlural() | ||
public function testItTouchesTheParentWithAnIrregularPlural() | ||
{ | ||
Carbon::setTestNow('2018-05-01 12:13:14'); | ||
|
||
|
@@ -104,8 +102,7 @@ public function itTouchesTheParentWithAnIrregularPlural() | |
$this->assertSame('2018-05-01 15:16:17', (string) $human->updated_at); | ||
} | ||
|
||
/** @test */ | ||
public function itPluralizesMorphToManyRelationships() | ||
public function testItPluralizesMorphToManyRelationships() | ||
{ | ||
$human = IrregularPluralHuman::create(['email' => '[email protected]']); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters