Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Improved record collector tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rskrzypczak committed Nov 7, 2023
1 parent 54daaf5 commit d60a2b8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/version.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

return [
'appVersion' => '6.5.3',
'appVersion' => '6.5.4',
'patchVersion' => '2023.11.07',
'lib_roundcube' => '0.3.1',
];
20 changes: 20 additions & 0 deletions tests/App/RecordCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ public function testVies(): void
public function testPlKrs(): void
{
$recordCollector = \App\RecordCollector::getInstance('App\RecordCollectors\PlKrs', 'Accounts');
if (!$recordCollector->isActive()) {
$this->markTestSkipped('No required access to test this functionality');
return;
}
$recordCollector->setRequest(new \App\Request([
'module' => 'Accounts',
'ncr' => '0000940956',
Expand All @@ -81,6 +85,10 @@ public function testPlKrs(): void
public function testDkCvr(): void
{
$recordCollector = \App\RecordCollector::getInstance('App\RecordCollectors\DkCvr', 'Accounts');
if (!$recordCollector->isActive()) {
$this->markTestSkipped('No required access to test this functionality');
return;
}
$recordCollector->setRequest(new \App\Request([
'module' => 'Accounts',
'country' => 'no',
Expand All @@ -105,6 +113,10 @@ public function testDkCvr(): void
public function testFrEnterpriseGouv(): void
{
$recordCollector = \App\RecordCollector::getInstance('App\RecordCollectors\FrEnterpriseGouv', 'Accounts');
if (!$recordCollector->isActive()) {
$this->markTestSkipped('No required access to test this functionality');
return;
}
$recordCollector->setRequest(new \App\Request([
'module' => 'Accounts',
'vatNumber' => '213305295',
Expand All @@ -128,6 +140,10 @@ public function testFrEnterpriseGouv(): void
public function testNoBrregEnhetsregisteret(): void
{
$recordCollector = \App\RecordCollector::getInstance('App\RecordCollectors\NoBrregEnhetsregisteret', 'Accounts');
if (!$recordCollector->isActive()) {
$this->markTestSkipped('No required access to test this functionality');
return;
}
$recordCollector->setRequest(new \App\Request([
'module' => 'Accounts',
'vatNumber' => '923486178',
Expand All @@ -152,6 +168,10 @@ public function testNoBrregEnhetsregisteret(): void
public function testUsaEdgarRegistryFromSec(): void
{
$recordCollector = \App\RecordCollector::getInstance('App\RecordCollectors\UsaEdgarRegistryFromSec', 'Accounts');
if (!$recordCollector->isActive()) {
$this->markTestSkipped('No required access to test this functionality');
return;
}
$recordCollector->setRequest(new \App\Request([
'module' => 'Accounts',
'cik' => '0001823466',
Expand Down

0 comments on commit d60a2b8

Please sign in to comment.