Added some very basic model tests

This commit is contained in:
Graham Campbell
2016-07-29 14:46:02 -04:00
parent b045028c7b
commit b7244b7987
15 changed files with 402 additions and 9 deletions

View File

@@ -0,0 +1,28 @@
<?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 CachetHQ\Cachet\Models\Setting;
use CachetHQ\Tests\Cachet\AbstractTestCase;
/**
* This is the setting model test class.
*
* @author Graham Campbell <graham@alt-three.com>
*/
class SettingTest extends AbstractTestCase
{
public function testValidation()
{
$this->assertFalse(property_exists(new Setting(), 'rules'));
}
}