Thomas Rabaix 13 лет назад
Родитель
Сommit
efb17ab69b
1 измененных файлов с 9 добавлено и 0 удалено
  1. 9 0
      Tests/Filter/ORM/FilterTest.php

+ 9 - 0
Tests/Filter/ORM/FilterTest.php

@@ -64,4 +64,13 @@ class FilterTest extends \PHPUnit_Framework_TestCase
         $filter->setValue(42);
         $this->assertEquals(42, $filter->getValue());
     }
+
+    /**
+     * @expectedException RuntimeException
+     */
+    public function testExceptionOnEmptyFieldName()
+    {
+        $filter = new FilterTest_Filter();
+        $filter->getFieldName();
+    }
 }