Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CT-1896 test correctly TreatValuesAsNull on BQ #1428

Closed
wants to merge 1 commit into from

Conversation

zajca
Copy link
Member

@zajca zajca commented Dec 4, 2024

Jira: CT-1896
KBC: XXX

Before asking for review make sure that:

Checklist

  • New client method(s) has tests
  • New client method(s) support branches, or they are listed in BranchAwareClient
  • Apiary file is updated

Release

  • I gave the PR a proper label:
    • major (BC break)
    • minor (new feature)
    • patch (backwards compatible fix)
    • no release (just test changes)

@@ -52,8 +52,7 @@ public function testImportTreatValuesAsNull(
return $row;
}, $data);

$this->assertEqualsCanonicalizing($expectedData, $data);

$this->assertArraySameSorted($expectedData, $data, 0);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tady to nevidělo rozdíl mezi null a ''

@@ -98,7 +97,7 @@ public function treatValuesAsNullData(): Generator
1 => [
0 => 31,
1 => 'belarus',
2 => '',
2 => null,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tady byl špatně assert ale test procházal

@@ -109,6 +108,30 @@ public function treatValuesAsNullData(): Generator
],
],
];
yield 'string' => [
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nový case změny znaku 'b' za null

@zajca
Copy link
Member Author

zajca commented Dec 4, 2024

image

@zajca zajca added the no release just test changes label Dec 4, 2024
};
usort($expected, $comparison);
usort($actual, $comparison);
$this->assertSame($expected, $actual, $message);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nový assert dělá same ne equals

@zajca zajca closed this Dec 4, 2024
@zajca zajca deleted the zajca-ct-1896-fix-tests branch December 4, 2024 13:43
@zajca zajca restored the zajca-ct-1896-fix-tests branch December 4, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no release just test changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant