Files
newznab-tmux/tests/UsersTest.php
T
2017-04-26 13:48:30 +02:00

33 lines
730 B
PHP

<?php
/**
* This file is part of NNTmux.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package NNTmux
* @author DariusIII
* @copyright (c) 2017, NNTmux
* @version 0.0.1
*/
namespace tests;
use nntmux\db\DB;
use nntmux\Users;
class UsersTest extends \PHPUnit_Framework_TestCase
{
const USERNAME = 'test';
const PASSWORD = '1234567';
const EMAIL = 'example@example.com';
public function testUsersAdd() {
$pdo = new DB();
$users = new Users();
$users->add(self::USERNAME, self::PASSWORD, self::EMAIL, '2', '', '');
$userTest = $users->getByEmail(self::EMAIL);
$this->assertEquals(self::EMAIL, $userTest['email']);
}
}