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

Commit

Permalink
FIX, correcting a missing "empty database" during tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Glasl committed Mar 7, 2017
1 parent bc348bc commit 5b71191
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [misdirection](https://packagist.org/packages/nglasl/silverstripe-misdirection)

_The current release is **2.2.19**_
_The current release is **2.2.20**_

> A module for SilverStripe which will allow both simple and regular expression link redirections based on customisable mappings, either hooking into a page not found or replacing the default automated URL handling.
Expand Down
4 changes: 4 additions & 0 deletions tests/MisdirectionUnitTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ public function testRegularExpressionReplacement() {
// Determine whether the regular expression replacement is correct.

$this->assertEquals($mapping->getLink(), ClassInfo::exists('Multisites') ? 'https://www.correct.com/page?misdirected=1' : 'https://www.correct.com/page');

// The database needs to be emptied to prevent further testing conflict.

self::empty_temp_db();
}

/**
Expand Down

0 comments on commit 5b71191

Please sign in to comment.