Updated tests

This commit is contained in:
Graham Campbell
2015-12-06 11:04:02 +00:00
parent 036c819922
commit 19e3804227
42 changed files with 340 additions and 412 deletions
+36
View File
@@ -0,0 +1,36 @@
<?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\Api;
use CachetHQ\Cachet\Models\User;
use CachetHQ\Tests\Cachet\AbstractTestCase;
use Illuminate\Foundation\Testing\DatabaseMigrations;
/**
* This is the abstract api test case class.
*
* @author Graham Campbell <graham@alt-three.com>
*/
abstract class AbstractApiTestCase extends AbstractTestCase
{
use DatabaseMigrations;
/**
* Become a user.
*/
protected function beUser()
{
$this->user = factory(User::class)->create();
$this->be($this->user);
}
}