mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-15 17:58:41 +00:00
phpunit bug fixes
This commit is contained in:
parent
68cfcbbf45
commit
d16c1b5509
|
|
@ -115,7 +115,7 @@ class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
public function testCreateEditorDocWithExistingTag() : void
|
public function testCreateEditorDocWithExistingTag() : void
|
||||||
{
|
{
|
||||||
$tag = new Tag();
|
$tag = new Tag();
|
||||||
$tag->setTitle('EditorDocTest');
|
$tag->setL11n('EditorDocTest');
|
||||||
$tagId = TagMapper::create($tag);
|
$tagId = TagMapper::create($tag);
|
||||||
|
|
||||||
$response = new HttpResponse();
|
$response = new HttpResponse();
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,7 @@ class EditorDocTest extends \PHPUnit\Framework\TestCase
|
||||||
public function testTagInputOutput() : void
|
public function testTagInputOutput() : void
|
||||||
{
|
{
|
||||||
$tag = new Tag();
|
$tag = new Tag();
|
||||||
$tag->setTitle('Tag');
|
$tag->setL11n('Tag');
|
||||||
|
|
||||||
$this->doc->addTag($tag);
|
$this->doc->addTag($tag);
|
||||||
self::assertCount(1, $this->doc->getTags());
|
self::assertCount(1, $this->doc->getTags());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user