Commit: d7e54560950fbeddcd29aa84c36dd5373bdfd775

Author: alkemann | Date: 2009-11-17 06:17:19 +0100
`Paste` createView() without param since only one view exists
diff --git a/models/Paste.php b/models/Paste.php index 26b5f23..543f6a8 100644 --- a/models/Paste.php +++ b/models/Paste.php @@ -82,8 +82,8 @@ class Paste extends \lithium\data\Model { ) ); - public static function createView($view) { - return parent::create(static::$_views[$view]); + public static function createView() { + return parent::create(static::$_views['latest']); } /** diff --git a/tests/integration/PasteTest.php b/tests/integration/PasteTest.php index 7889ee0..a766fa7 100644 --- a/tests/integration/PasteTest.php +++ b/tests/integration/PasteTest.php @@ -135,7 +135,7 @@ class PasteTest extends \lithium\test\Unit { } protected function _taskPutView() { - $paste = MockPaste::createView('latest')->save(); + $paste = MockPaste::createView()->save(); } public function testSave() {