Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added getMachineTags test for correct handling of = signs in values

  • Loading branch information...
commit 73dda0e50b6772b60e2477cad5c75641383e8b2e 1 parent c892ab6
@barnabywalters authored
Showing with 19 additions and 0 deletions.
  1. +19 −0 tests/BarnabyWalters/Helpers/HelpersTest.php
View
19 tests/BarnabyWalters/Helpers/HelpersTest.php
@@ -180,6 +180,25 @@ public function testGetMachineTagsTruncatesNamespace() {
* @group text
* @group helpers
*/
+ public function testGetMachineTagsHandlesEqualsSignsInValue() {
+ $arr = [
+ 'machine:tag=yes is = to something!',
+ ];
+
+ $expected = [
+ 'machine:tag' => 'yes is = to something!'
+ ];
+
+ $result = H::getMachineTags($arr);
+
+ $this->assertEquals($result, $expected);
+ }
+
+ /**
+ * @group unit
+ * @group text
+ * @group helpers
+ */
public function testTagstringClean() {
$testTagstring = 'a tag, anothertag, <sometag>';
$testResult = 'a tag,anothertag,&lt;sometag&gt;';
Please sign in to comment.
Something went wrong with that request. Please try again.