aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/extension_controller_test.php
diff options
context:
space:
mode:
authorDavid King <imkingdavid@gmail.com>2012-03-18 14:44:37 -0400
committerDavid King <imkingdavid@gmail.com>2012-03-19 09:12:34 -0400
commit7d1e4bca334dc9fcef3eb6e62cb412226ebc7ca4 (patch)
tree462c1a569a02c1ff1d79683e28b145b494f985a5 /tests/functional/extension_controller_test.php
parent4100b312bb0eb7246e9057461b6f8f3c66fdad60 (diff)
downloadforums-7d1e4bca334dc9fcef3eb6e62cb412226ebc7ca4.tar
forums-7d1e4bca334dc9fcef3eb6e62cb412226ebc7ca4.tar.gz
forums-7d1e4bca334dc9fcef3eb6e62cb412226ebc7ca4.tar.bz2
forums-7d1e4bca334dc9fcef3eb6e62cb412226ebc7ca4.tar.xz
forums-7d1e4bca334dc9fcef3eb6e62cb412226ebc7ca4.zip
[ticket/10586] more work on getting tests to pass
PHPBB3-10586
Diffstat (limited to 'tests/functional/extension_controller_test.php')
-rw-r--r--tests/functional/extension_controller_test.php16
1 files changed, 5 insertions, 11 deletions
diff --git a/tests/functional/extension_controller_test.php b/tests/functional/extension_controller_test.php
index cb27511be1..46f3dc6f96 100644
--- a/tests/functional/extension_controller_test.php
+++ b/tests/functional/extension_controller_test.php
@@ -85,10 +85,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c
$phpbb_extension_manager = $this->get_ext_manager();
$phpbb_extension_manager->enable('foobar');
$crawler = $this->request('GET', 'index.php?ext=foobar');
- if($this->assertGreaterThan(0, $crawler->filter('#welcome')->count()))
- {
- $this->assertContains("This is for testing purposes.", $crawler->filter('#welcome')->text());
- }
+ $this->assertContains("This is for testing purposes.", $crawler->filter('#page-body')->text());
$phpbb_extension_manager->purge('foobar');
}
@@ -101,11 +98,8 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c
$phpbb_extension_manager = $this->get_ext_manager();
$phpbb_extension_manager->enable('foo/bar');
$crawler = $this->request('GET', 'index.php?ext=foo/bar');
- if($this->assertGreaterThan(0, $crawler->filter('#welcome')->count()))
- {
- $this->assertContains("This is for testing purposes.", $crawler->filter('#welcome')->text());
- }
- $phpbb_extension_manager->purge('foo_bar');
+ $this->assertContains("This is for testing purposes.", $crawler->filter('#page-body')->text());
+ $phpbb_extension_manager->purge('foo/bar');
}
/**
@@ -118,7 +112,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c
$phpbb_extension_manager->enable('error/class');
$crawler = $this->request('GET', 'index.php?ext=error/class');
$this->assertContains("The extension error/class is missing a controller class and cannot be accessed through the front-end.", $crawler->filter('#message')->text());
- $phpbb_extension_manager->purge('error_class');
+ $phpbb_extension_manager->purge('error/class');
}
/**
@@ -131,7 +125,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c
$phpbb_extension_manager->enable('error/classtype');
$crawler = $this->request('GET', 'index.php?ext=error/classtype');
$this->assertContains("The extension controller class phpbb_ext_error_classtype_controller is not an instance of the phpbb_extension_controller_interface.", $crawler->filter('#message')->text());
- $phpbb_extension_manager->purge('error_classtype');
+ $phpbb_extension_manager->purge('error/classtype');
}
/**