Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
DOCUMENTATION, cleaning up some comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Glasl committed Mar 6, 2017
1 parent 93c0bfe commit 91f518f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/FusionUnitTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function setUpOnce() {

parent::setUpOnce();

// The fusion testing tag needs to be included.
// The fusion testing tag needs to be a custom tag type.

Config::inst()->update('FusionService', 'custom_tag_types', array(
'FusionTestingTag' => 'Title'
Expand All @@ -30,7 +30,7 @@ public function setUpOnce() {
* The test to ensure the fusion tags are functioning correctly.
*/

public function testFusionTags() {
public function testTags() {

// Instantiate a tag to use.

Expand All @@ -44,6 +44,9 @@ public function testFusionTags() {
$fusion = FusionTag::get()->byID($ID);
$this->assertTrue(is_object($fusion));
$this->assertEquals($fusion->Title, $tag->Title);

// The tag types need to be wrapped for serialised partial matching.

$this->assertContains('"FusionTestingTag"', $fusion->TagTypes);

// Update the tag.
Expand Down Expand Up @@ -89,10 +92,6 @@ class FusionTestingTag extends DataObject implements TestOnly {
'Title' => 'Varchar(255)'
);

/**
* The tag requires the fusion extension.
*/

private static $extensions = array(
'FusionExtension'
);
Expand Down

0 comments on commit 91f518f

Please sign in to comment.