Commit: 73821303f263ced0b7773bc5ce29b6272e4d65dc

Author: alkemann | Date: 2009-11-17 20:33:23 +0100
removed extra filter test for `MockPaste` as models cant have multiple filters in this way atm.
diff --git a/tests/cases/models/PasteTest.php b/tests/cases/models/PasteTest.php index e2f094f..0b2d467 100644 --- a/tests/cases/models/PasteTest.php +++ b/tests/cases/models/PasteTest.php @@ -175,28 +175,6 @@ class PasteTest extends \lithium\test\Unit { $this->assertEqual($expected, $result); } - public function testApplyingFilter() { - MockPaste::applyFilter('save', function($self, $params, $chain) { - $document = $params['record']; - if ($document->language != 'text' && - in_array($document->language, MockPaste::$languages)) { - $document = MockPaste::mockParse($document); - } - return $document ; - }); - - $data = array( - 'content' => 'echo $this->function("lol");', - 'author' => 'TomGood', - 'language' => 'php' - ); - $paste = MockPaste::create($data); - $result = $paste->save(); - - $expected = 'PARSED'; - $this->assertEqual($expected, $result->parsed); - } - public function testGeShiFilter() { MockPaste::applyFilter('save', function($self, $params, $chain) { $document = $params['record']; @@ -223,4 +201,4 @@ class PasteTest extends \lithium\test\Unit { } -?> \ No newline at end of file +?>