for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Maestriam\Samurai\Tests\Unit\Entities\Theme;
use Maestriam\Samurai\Entities\Theme;
/**
* Testes de verificação de existência de tema
*/
class ExistsThemeTest extends ThemeTestCase
{
* Verifica se o tema existe na base, depois do comando de criação
*
* @return void
public function testExistsTheme()
$theme = new Theme('bands/whitesnake');
$theme->make();
$exists = $theme->exists();
$this->assertTrue($exists);
$this->assertIsBool($exists);
}
* Verifica se o tema existe na base, sem ele não ter criado
public function testNotExistsTheme()
$theme = new Theme('bands/white-znake');
$this->assertFalse($exists);