Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding skip() for CacheHelper test to check if app/tmp/cache/views is…

… writable.
  • Loading branch information...
commit 0b232742d981f28cdc6a929bac5fca1b96aeb24c 1 parent dac26d9
@markstory markstory authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 cake/tests/cases/libs/view/helpers/cache.test.php
View
8 cake/tests/cases/libs/view/helpers/cache.test.php
@@ -81,6 +81,14 @@ function cache_parsing() {
class CacheHelperTest extends CakeTestCase {
/**
+ * Checks if TMP/views is writable, and skips the case if it is not.
+ *
+ * @return void
+ **/
+ function skip() {
+ $this->skipUnless(is_writable(TMP . 'cache' . DS . 'views' . DS), 'TMP/views is not writable %s');
+ }
+/**
* setUp method
*
* @access public
Please sign in to comment.
Something went wrong with that request. Please try again.