summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-05-04 15:57:40 +0300
committerAndrew Dolgov <[email protected]>2017-05-04 15:57:40 +0300
commit7c9b5a3fe40a641af1cb6003b03b2352576a0c4b (patch)
treeaee154f7437c945c18074a2a158a65845ef115f2 /tests
parentc2f0f24e4c4577944b563f3c0af92a8ed89b8e61 (diff)
move label stuff to Labels class
fix some unresolved functions
Diffstat (limited to 'tests')
-rw-r--r--tests/ApiTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ApiTest.php b/tests/ApiTest.php
index 1f52d44a9..24f474e51 100644
--- a/tests/ApiTest.php
+++ b/tests/ApiTest.php
@@ -211,7 +211,7 @@ final class ApiTest extends TestCase {
public function testLabels() {
// create label
- label_create('Test', '', '', 1);
+ Labels::create('Test', '', '', 1);
$this->testLogin();
$ret = $this->apiCall([], "getLabels");
@@ -219,7 +219,7 @@ final class ApiTest extends TestCase {
$this->assertEquals('Test', $ret['content'][0]['caption']);
$label_feed_id = $ret['content'][0]['id'];
- $label_id = feed_to_label_id($label_feed_id);
+ $label_id = Labels::feed_to_label_id($label_feed_id);
$this->assertLessThan(0, $label_feed_id);
$this->assertGreaterThan(0, $label_id);
@@ -246,7 +246,7 @@ final class ApiTest extends TestCase {
// clean up and check
- label_remove($label_id, 1);
+ Labels::remove($label_id, 1);
$ret = $this->apiCall([], "getLabels");
$this->assertEmpty($ret['content']);