-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60d1e6b
commit 422079d
Showing
1 changed file
with
28 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
use Tonik\Gin\Foundation\Theme; | ||
|
||
class ThemeTest extends TestCase | ||
{ | ||
/** | ||
* @test | ||
*/ | ||
public function it_return_same_instance_on_every_access() | ||
{ | ||
$theme = Theme::getInstance(); | ||
|
||
$this->assertEquals(Theme::getInstance(), $theme); | ||
} | ||
|
||
/** | ||
* @test | ||
*/ | ||
public function test_binding_and_resolving_from_theme_container() | ||
{ | ||
$theme = Theme::getInstance(); | ||
|
||
$theme->bind('key', 'value'); | ||
|
||
$this->assertEquals(Theme::getInstance()->get('key'), 'value'); | ||
} | ||
} |