|
|
@@ -180,28 +180,4 @@ class Zend_Navigation_PageFactoryTest extends PHPUnit_Framework_TestCase
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- /**
|
|
|
- * @group ZF-10048
|
|
|
- */
|
|
|
- public function testMvcShouldFailIfOptionsContainsUriAndMvcProperties()
|
|
|
- {
|
|
|
- try {
|
|
|
- $page = Zend_Navigation_Page::factory(array(
|
|
|
- 'label' => 'MVC Page',
|
|
|
- 'action' => 'index',
|
|
|
- 'controller' => 'index',
|
|
|
- 'uri' => '#'
|
|
|
- ));
|
|
|
- $this->fail(
|
|
|
- 'An exception has not been thrown for invalid properties'
|
|
|
- );
|
|
|
- } catch(Zend_Navigation_Exception $e) {
|
|
|
- $this->assertEquals(
|
|
|
- 'Invalid argument: Unable to determine class to instantiate '
|
|
|
- . '(Page label: MVC Page)',
|
|
|
- $e->getMessage()
|
|
|
- );
|
|
|
- }
|
|
|
- }
|
|
|
}
|