tests: add a missing newline at EOF
[racktables] / tests / EmptySQLWhereTest.php
1 <?php
2
3 class EmptySQLWhereTest extends PHPUnit_Framework_TestCase
4 {
5 protected $tag_id;
6
7 public function setUp ()
8 {
9 usePreparedInsertBlade ('TagTree', array ('tag' => 'unit test tag'));
10 $this->tag_id = lastInsertID ();
11 }
12
13 public function tearDown ()
14 {
15 usePreparedDeleteBlade ('TagTree', array ('id' => $this->tag_id));
16 }
17
18 /**
19 * @group small
20 * @expectedException InvalidArgException
21 */
22 public function testMalformedDelete ()
23 {
24 usePreparedDeleteBlade ('TagTree', NULL);
25 }
26
27 /**
28 * @group small
29 * @expectedException InvalidArgException
30 */
31 public function testMalformedUpdate1 ()
32 {
33 usePreparedUpdateBlade ('TagTree', array ('is_assignable' => 'yes'), NULL);
34 }
35
36 /**
37 * @group small
38 * @expectedException InvalidArgException
39 */
40 public function testMalformedUpdate2 ()
41 {
42 usePreparedUpdateBlade ('TagTree', NULL, NULL);
43 }
44 }
45
46 ?>