Added some very basic model tests
This commit is contained in:
30
tests/Models/ModelExistenceTest.php
Normal file
30
tests/Models/ModelExistenceTest.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Cachet.
|
||||
*
|
||||
* (c) Alt Three Services Limited
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace CachetHQ\Tests\Cachet\Models;
|
||||
|
||||
use AltThree\TestBench\ExistenceTrait;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
|
||||
/**
|
||||
* This is the model existence test class.
|
||||
*
|
||||
* @author Graham Campbell <graham@alt-three.com>
|
||||
*/
|
||||
class ModelExistenceTest extends TestCase
|
||||
{
|
||||
use ExistenceTrait;
|
||||
|
||||
protected function getSourcePath()
|
||||
{
|
||||
return realpath(__DIR__.'/../../app/Models');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user