Conditionally adding tag field tests

This commit is contained in:
Ingo Schommer 2013-04-06 13:44:13 +02:00
parent 7f6c958914
commit 4c062448b8
3 changed files with 53 additions and 49 deletions

View File

@ -1,4 +1,5 @@
<?php
if(class_exists('TagField')) {
class TestTag extends DataObject {
private static $db = array(
@ -21,3 +22,4 @@ class TestTag extends DataObject {
}
}
}
}

View File

@ -1,4 +1,5 @@
<?php
if(class_exists('TagField')) {
class TestTagFieldPage extends Page {
private static $db = array(
@ -36,3 +37,4 @@ class TestTagFieldPage extends Page {
}
}
}