mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-08 20:42:42 +00:00
Fixing ExceptionRenderer so it can render exceptions that are subclasses
of CakeException that do not have custom templates, like ConfigureException. Removing $lastError as it doesn't work. Added tests.
This commit is contained in:
parent
c1a8dbbce7
commit
a7a076dbee
2 changed files with 19 additions and 8 deletions
|
@ -574,6 +574,16 @@ class ExceptionRendererTest extends CakeTestCase {
|
|||
'/Internal Error/'
|
||||
),
|
||||
500
|
||||
),
|
||||
array(
|
||||
new CakeException('base class'),
|
||||
array('/Internal Error/'),
|
||||
500
|
||||
),
|
||||
array(
|
||||
new ConfigureException('No file'),
|
||||
array('/Internal Error/'),
|
||||
500
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue