mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Added notmatches operator for tagging rule
This commit is contained in:
parent
64f1d8f77a
commit
fdd725f58c
32 changed files with 125 additions and 48 deletions
|
@ -270,7 +270,7 @@ class EntryControllerTest extends WallabagCoreTestCase
|
|||
->findOneByUrl($url);
|
||||
$tags = $entry->getTags();
|
||||
|
||||
$this->assertCount(1, $tags);
|
||||
$this->assertCount(2, $tags);
|
||||
$this->assertEquals('wallabag', $tags[0]->getLabel());
|
||||
|
||||
$em->remove($entry);
|
||||
|
@ -299,8 +299,8 @@ class EntryControllerTest extends WallabagCoreTestCase
|
|||
|
||||
$tags = $entry->getTags();
|
||||
|
||||
$this->assertCount(1, $tags);
|
||||
$this->assertEquals('wallabag', $tags[0]->getLabel());
|
||||
$this->assertCount(2, $tags);
|
||||
$this->assertEquals('wallabag', $tags[1]->getLabel());
|
||||
|
||||
$em->remove($entry);
|
||||
$em->flush();
|
||||
|
|
|
@ -241,7 +241,7 @@ class ExportControllerTest extends WallabagCoreTestCase
|
|||
$this->assertEquals($contentInDB->getLanguage(), $content[0]['language']);
|
||||
$this->assertEquals($contentInDB->getReadingtime(), $content[0]['reading_time']);
|
||||
$this->assertEquals($contentInDB->getDomainname(), $content[0]['domain_name']);
|
||||
$this->assertEquals(['foo bar', 'baz'], $content[0]['tags']);
|
||||
$this->assertEquals(['foo bar', 'baz', 'foot'], $content[0]['tags']);
|
||||
}
|
||||
|
||||
public function testXmlExport()
|
||||
|
|
|
@ -46,7 +46,7 @@ class TagControllerTest extends WallabagCoreTestCase
|
|||
->getRepository('WallabagCoreBundle:Entry')
|
||||
->findByUrlAndUserId('http://0.0.0.0/entry1', $this->getLoggedInUserId());
|
||||
|
||||
$this->assertEquals(3, count($entry->getTags()));
|
||||
$this->assertEquals(4, count($entry->getTags()));
|
||||
|
||||
// tag already exists and already assigned
|
||||
$client->submit($form, $data);
|
||||
|
@ -57,7 +57,7 @@ class TagControllerTest extends WallabagCoreTestCase
|
|||
->getRepository('WallabagCoreBundle:Entry')
|
||||
->find($entry->getId());
|
||||
|
||||
$this->assertEquals(3, count($newEntry->getTags()));
|
||||
$this->assertEquals(4, count($newEntry->getTags()));
|
||||
|
||||
// tag already exists but still not assigned to this entry
|
||||
$data = [
|
||||
|
@ -72,7 +72,7 @@ class TagControllerTest extends WallabagCoreTestCase
|
|||
->getRepository('WallabagCoreBundle:Entry')
|
||||
->find($entry->getId());
|
||||
|
||||
$this->assertEquals(3, count($newEntry->getTags()));
|
||||
$this->assertEquals(4, count($newEntry->getTags()));
|
||||
}
|
||||
|
||||
public function testAddMultipleTagToEntry()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue