Skip to content

Commit 01e7b4f

Browse files
Manjusha.SManjusha.S
authored andcommitted
MQE-2021 : Added unit test
1 parent 37e5171 commit 01e7b4f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

dev/tests/unit/Magento/FunctionalTestFramework/Util/TestGeneratorTest.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ public function testUniqueIdAppendedToInputStringAsPrefix()
103103
$testObject = new TestObject('sampleTest', ['merge123' => $actionObject], [], [], 'filename');
104104
$testGeneratorObject = TestGenerator::getInstance('', ['sampleTest' => $testObject]);
105105

106-
$result = $testGeneratorObject->getUniqueIdForInput('prefix' , "foo");
106+
$result = $testGeneratorObject->getUniqueIdForInput('prefix', "foo");
107107

108-
$this->assertMatchesRegularExpression('/[A-Za-z0-9]+foo/' ,$result );
108+
$this->assertMatchesRegularExpression('/[A-Za-z0-9]+foo/', $result);
109109
}
110110

111111
/**
@@ -123,17 +123,17 @@ public function testUniqueIdAppendedToInputStringAsSuffix()
123123
$testObject = new TestObject('sampleTest', ['merge123' => $actionObject], [], [], 'filename');
124124
$testGeneratorObject = TestGenerator::getInstance('', ['sampleTest' => $testObject]);
125125

126-
$result = $testGeneratorObject->getUniqueIdForInput('suffix' , "foo");
126+
$result = $testGeneratorObject->getUniqueIdForInput('suffix', "foo");
127127

128-
$this->assertMatchesRegularExpression('/foo[A-Za-z0-9]+/' ,$result );
128+
$this->assertMatchesRegularExpression('/foo[A-Za-z0-9]+/', $result);
129129
}
130130

131131
/**
132-
* Basic test for wrong output for input
133-
*
134-
* @return void
135-
* @throws Exception
136-
*/
132+
* Basic test for wrong output for input
133+
*
134+
* @return void
135+
* @throws Exception
136+
*/
137137
public function testFailedRegexForUniqueAttribute()
138138
{
139139
$actionObject = new ActionObject('fakeAction', 'comment', [
@@ -143,9 +143,9 @@ public function testFailedRegexForUniqueAttribute()
143143
$testObject = new TestObject('sampleTest', ['merge123' => $actionObject], [], [], 'filename');
144144
$testGeneratorObject = TestGenerator::getInstance('', ['sampleTest' => $testObject]);
145145

146-
$result = $testGeneratorObject->getUniqueIdForInput('suffix' , "foo");
146+
$result = $testGeneratorObject->getUniqueIdForInput('suffix', "foo");
147147

148-
$this->assertDoesNotMatchRegularExpression('/bar[A-Za-z0-9]+/' ,$result );
148+
$this->assertDoesNotMatchRegularExpression('/bar[A-Za-z0-9]+/', $result);
149149
}
150150

151151
/**

0 commit comments

Comments
 (0)