mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Online class test added.
This commit is contained in:
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()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user