mirror of
https://github.com/e107inc/e107.git
synced 2025-03-26 07:12:54 +01:00
Online class test added.
This commit is contained in:
parent
b830aeae91
commit
90a7ac7020
56
tests/unit/e_onlineTest.php
Normal file
56
tests/unit/e_onlineTest.php
Normal file
@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Wiz
|
||||
* Date: 1/31/2019
|
||||
* Time: 1:50 PM
|
||||
*/
|
||||
|
||||
|
||||
class e_onlineTest extends \Codeception\Test\Unit
|
||||
{
|
||||
/** @var e_online */
|
||||
private $on;
|
||||
|
||||
protected function _before()
|
||||
{
|
||||
try
|
||||
{
|
||||
$this->on = $this->make('e_online');
|
||||
$this->on->__construct();
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
$this->assertTrue(false, "Couldn't load e_online object");
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public function testGoOnline()
|
||||
{
|
||||
|
||||
$this->on->goOnline(true, true);
|
||||
// var_dump(TOTAL_ONLINE);
|
||||
}
|
||||
|
||||
public function testIsBot()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testGuestList()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function testUserList()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user