From 2735982c551d6537bd49fda265c82fdd3471fa36 Mon Sep 17 00:00:00 2001 From: Cesar G Date: Thu, 12 Dec 2013 13:00:27 -0800 Subject: [PATCH] [ticket/12009] Update functional test to check for invalid extensions. PHPBB3-12009 --- tests/functional/extension_acp_test.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/functional/extension_acp_test.php b/tests/functional/extension_acp_test.php index 95eb45a73d..35735659b2 100644 --- a/tests/functional/extension_acp_test.php +++ b/tests/functional/extension_acp_test.php @@ -97,6 +97,12 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case $this->assertContains('phpBB Bar Extension', $crawler->filter('.ext_disabled')->eq(3)->text()); $this->assertContainsLang('DETAILS', $crawler->filter('.ext_disabled')->eq(3)->text()); $this->assertContainsLang('EXTENSION_ENABLE', $crawler->filter('.ext_disabled')->eq(3)->text()); + + // Check that invalid extensions are not listed. + $this->assertNotContains('phpBB BarFoo Extension', $crawler->filter('.table1')->text()); + $this->assertNotContains('barfoo', $crawler->filter('.table1')->text()); + + $this->assertNotContains('vendor3/bar', $crawler->filter('.table1')->text()); } public function test_details()