mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
adding another test case for img from vendors, closes #5033
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7317 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
5131e1c3b3
commit
20439c098b
2 changed files with 8 additions and 0 deletions
|
@ -1282,6 +1282,14 @@ class DispatcherTest extends UnitTestCase {
|
|||
|
||||
$Dispatcher =& new TestDispatcher();
|
||||
|
||||
Configure::write('debug', 0);
|
||||
ob_start();
|
||||
$Dispatcher->dispatch('/img/test.jpg');
|
||||
$result = ob_get_clean();
|
||||
$file = file_get_contents(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'vendors' . DS . 'img' . DS . 'test.jpg');
|
||||
$this->assertEqual($file, $result);
|
||||
|
||||
|
||||
Configure::write('debug', 0);
|
||||
$Dispatcher->params = $Dispatcher->parseParams('css/test_asset.css');
|
||||
|
||||
|
|
BIN
cake/tests/test_app/vendors/img/test.jpg
vendored
Normal file
BIN
cake/tests/test_app/vendors/img/test.jpg
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.2 KiB |
Loading…
Add table
Reference in a new issue