Cachet/tests/Api/AbstractApiTestCase.php
Graham Campbell 19e3804227 Updated tests
2015-12-06 11:04:02 +00:00

37 lines
752 B
PHP

<?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);
}
}