Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Adding a test class for PasswordReset Model
- Loading branch information
1 parent
785423c
commit b4c868f
Showing
4 changed files
with
61 additions
and
6 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php namespace Arcanedev\LaravelAuth\Tests\Models; | ||
use Arcanedev\LaravelAuth\Models\PasswordReset; | ||
|
||
/** | ||
* Class PasswordResetTest | ||
* | ||
* @package Arcanedev\LaravelAuth\Tests\Models | ||
* @author ARCANEDEV <arcanedev.maroc@gmail.com> | ||
*/ | ||
class PasswordResetTest extends ModelsTest | ||
{ | ||
/* ------------------------------------------------------------------------------------------------ | ||
| Properties | ||
| ------------------------------------------------------------------------------------------------ | ||
*/ | ||
/** @var \Arcanedev\LaravelAuth\Models\PasswordReset */ | ||
protected $passwordReset; | ||
|
||
/* ------------------------------------------------------------------------------------------------ | ||
| Main Functions | ||
| ------------------------------------------------------------------------------------------------ | ||
*/ | ||
public function setUp() | ||
{ | ||
parent::setUp(); | ||
|
||
$this->passwordReset = new PasswordReset; | ||
} | ||
|
||
public function tearDown() | ||
{ | ||
unset($this->passwordReset); | ||
|
||
parent::tearDown(); | ||
} | ||
|
||
/* ------------------------------------------------------------------------------------------------ | ||
| Test Functions | ||
| ------------------------------------------------------------------------------------------------ | ||
*/ | ||
|
||
/** @test */ | ||
public function it_can_be_instantiated() | ||
{ | ||
$expectations = [ | ||
\Illuminate\Database\Eloquent\Model::class, | ||
\Arcanedev\LaravelAuth\Models\PasswordReset::class, | ||
]; | ||
|
||
foreach ($expectations as $expected) { | ||
$this->instance($expected, $this->passwordReset); | ||
} | ||
} | ||
|
||
} |