Skip to content

Commit cb04f93

Browse files
tadeobarrancoAlexWorking
authored andcommitted
Fixing failures in the test file
1 parent bda63c7 commit cb04f93

File tree

1 file changed

+8
-4
lines changed
  • dev/tests/integration/testsuite/Magento/Directory/Model/Country/Postcode

1 file changed

+8
-4
lines changed

dev/tests/integration/testsuite/Magento/Directory/Model/Country/Postcode/ValidatorTest.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,24 @@ public function testPostCodesThrowsExceptionIfCountryDoesNotExist()
4545
/**
4646
* @dataProvider getCanadaInvalidPostCodes
4747
*/
48-
public function testInvalidCanadaZipCode($countryId, $invalidPostCode) {
48+
public function testInvalidCanadaZipCode($countryId, $invalidPostCode)
49+
{
4950
$this->assertFalse($this->validator->validate($invalidPostCode, $countryId));
5051
}
5152

5253
/**
5354
* @dataProvider getCanadaValidPostCodes
5455
*/
55-
public function testValidCanadaZipCode($countryId, $validPostCode) {
56+
public function testValidCanadaZipCode($countryId, $validPostCode)
57+
{
5658
$this->assertTrue($this->validator->validate($validPostCode, $countryId));
5759
}
5860

5961
/**
6062
* @return array
6163
*/
62-
public function getCanadaInvalidPostCodes() {
64+
public function getCanadaInvalidPostCodes()
65+
{
6366
return [
6467
['countryId' => 'CA', 'postcode' => '12345'],
6568
['countryId' => 'CA', 'postcode' => 'A1B2C3D'],
@@ -71,7 +74,8 @@ public function getCanadaInvalidPostCodes() {
7174
/**
7275
* @return array
7376
*/
74-
public function getCanadaValidPostCodes() {
77+
public function getCanadaValidPostCodes()
78+
{
7579
return [
7680
['countryId' => 'CA', 'postcode' => 'A1B2C3'],
7781
['countryId' => 'CA', 'postcode' => 'A1B 2C3'],

0 commit comments

Comments
 (0)