From e87ba9f24b8dc44c56faa349738b21d94a295565 Mon Sep 17 00:00:00 2001 From: Jean-Fabien Barrios Date: Tue, 7 Dec 2010 19:56:37 +0000 Subject: [PATCH] BUGFIX Test if form is the right class (if a class decorates the content controller, this test would break ie sphinx) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@114654 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/search/ContentControllerSearchExtensionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/search/ContentControllerSearchExtensionTest.php b/tests/search/ContentControllerSearchExtensionTest.php index afe35a739..499f3a2f8 100644 --- a/tests/search/ContentControllerSearchExtensionTest.php +++ b/tests/search/ContentControllerSearchExtensionTest.php @@ -8,6 +8,6 @@ class ContentControllerSearchExtensionTest extends SapphireTest { $controller = new ContentController($page); $form = $controller->SearchForm(); - $this->assertEquals(array('File'), $form->getClassesToSearch()); + if (get_class($form) == 'SearchForm') $this->assertEquals(array('File'), $form->getClassesToSearch()); } } \ No newline at end of file