mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-02-15 16:28:39 +00:00
fix tests
This commit is contained in:
parent
f0d9dec88e
commit
9737ae213e
|
|
@ -98,7 +98,7 @@ final class SearchControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
public function testGotoSearch() : void
|
public function testGotoSearch() : void
|
||||||
{
|
{
|
||||||
$response = new HttpResponse();
|
$response = new HttpResponse();
|
||||||
$request = new HttpRequest(new HttpUri('https://127.0.0.1/en/backend'));
|
$request = new HttpRequest(new HttpUri(''));
|
||||||
$request->createRequestHashs(2);
|
$request->createRequestHashs(2);
|
||||||
|
|
||||||
$request->header->account = 1;
|
$request->header->account = 1;
|
||||||
|
|
@ -106,7 +106,7 @@ final class SearchControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
$request->setData('app', 'Backend');
|
$request->setData('app', 'Backend');
|
||||||
|
|
||||||
$this->module->searchGoto($request, $response);
|
$this->module->searchGoto($request, $response);
|
||||||
self::assertInstanceOf(Redirect::class, $response->get('https://127.0.0.1/en/backend'));
|
self::assertInstanceOf(Redirect::class, $response->get(''));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -116,7 +116,7 @@ final class SearchControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
public function testInvalidGotoSearch() : void
|
public function testInvalidGotoSearch() : void
|
||||||
{
|
{
|
||||||
$response = new HttpResponse();
|
$response = new HttpResponse();
|
||||||
$request = new HttpRequest(new HttpUri('https://127.0.0.1/en/backend'));
|
$request = new HttpRequest(new HttpUri(''));
|
||||||
$request->createRequestHashs(0);
|
$request->createRequestHashs(0);
|
||||||
|
|
||||||
$request->header->account = 1;
|
$request->header->account = 1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user