diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-22 19:15:50 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-22 19:15:50 -0500 |
commit | 4d007ec39fe808c28fe08516afe549aa5d0aeb42 (patch) | |
tree | 615ef57a18e675afead27046b90fe800a9f63109 /tests/functionals | |
parent | c49d46718a07afeea017aa90a60320587211dc49 (diff) |
addColumn() return the column_id now
Diffstat (limited to 'tests/functionals')
-rw-r--r-- | tests/functionals/ApiTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/functionals/ApiTest.php b/tests/functionals/ApiTest.php index 3b1c5241..ece7b46d 100644 --- a/tests/functionals/ApiTest.php +++ b/tests/functionals/ApiTest.php @@ -135,7 +135,11 @@ class Api extends PHPUnit_Framework_TestCase public function testAddColumn() { - $this->assertTrue($this->client->addColumn(1, 'New column')); + $column_id = $this->client->addColumn(1, 'New column'); + + $this->assertNotFalse($column_id); + $this->assertInternalType('int', $column_id); + $this->assertTrue($column_id > 0); $columns = $this->client->getColumns(1); $this->assertTrue(is_array($columns)); |