Skip to content

Commit

Permalink
Adds Theme unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jedrzejchalubek committed Jan 23, 2017
1 parent 60d1e6b commit 422079d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/Gin/Foundation/ThemeTest.php
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');
}
}

0 comments on commit 422079d

Please sign in to comment.