Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439 Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
46 lines
1.1 KiB
PHP
46 lines
1.1 KiB
PHP
<?php namespace Tests;
|
|
|
|
use Mockery;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
use Packback\Lti1p3\Interfaces\Cache;
|
|
use Packback\Lti1p3\Interfaces\Cookie;
|
|
use Packback\Lti1p3\Interfaces\Database;
|
|
use Packback\Lti1p3\LtiMessageLaunch;
|
|
|
|
class LtiMessageLaunchTest extends TestCase
|
|
{
|
|
public function setUp(): void
|
|
{
|
|
$this->cache = Mockery::mock(Cache::class);
|
|
$this->cookie = Mockery::mock(Cookie::class);
|
|
$this->database = Mockery::mock(Database::class);
|
|
|
|
$this->messageLaunch = new LtiMessageLaunch(
|
|
$this->database,
|
|
$this->cache,
|
|
$this->cookie
|
|
);
|
|
}
|
|
|
|
public function testItInstantiates()
|
|
{
|
|
$this->assertInstanceOf(LtiMessageLaunch::class, $this->messageLaunch);
|
|
}
|
|
|
|
public function testItCreatesANewInstance()
|
|
{
|
|
$messageLaunch = LtiMessageLaunch::new(
|
|
$this->database,
|
|
$this->cache,
|
|
$this->cookie
|
|
);
|
|
|
|
$this->assertInstanceOf(LtiMessageLaunch::class, $messageLaunch);
|
|
}
|
|
|
|
/**
|
|
* @todo Finish testing
|
|
*/
|
|
}
|