Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoya-de committed Jan 9, 2024
1 parent b198496 commit 3ce12a7
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 84 deletions.
Empty file removed composer.lock
Empty file.
Original file line number Diff line number Diff line change
@@ -1,44 +1,4 @@
<?php return \Makaira\Connect\Type\Product\Product::__set_state(array(
'es_id' => NULL,
'id' => 'phpunit_product',
'timestamp' => NULL,
'url' => NULL,
'active' => true,
'shop' =>
array (
),
'additionalData' =>
array (
),
'attributeStr' =>
array (
),
'attributeInt' =>
array (
),
'attributeFloat' =>
array (
),
'isPseudo' => false,
'ean' => '',
'title' => '',
'searchkeys' => '',
'hidden' => false,
'sort' => 0,
'longdesc' => '',
'shortdesc' => '',
'stock' => 0,
'onstock' => false,
'manufacturerid' => '',
'manufacturer_title' => '',
'price' => 0.0,
'insert' => NULL,
'soldamount' => 0,
'rating' => 0.0,
'searchable' => true,
'picture_url_main' =>
array (
),
<?php return Makaira\Connect\Type\Product\Product::__set_state(array(
'attributes' =>
array (
0 =>
Expand Down Expand Up @@ -107,4 +67,44 @@
'tmpAttributeFloat' =>
array (
),
));
'attributeStr' =>
array (
),
'attributeInt' =>
array (
),
'attributeFloat' =>
array (
),
'isPseudo' => false,
'ean' => '',
'title' => '',
'searchkeys' => '',
'hidden' => false,
'sort' => 0,
'longdesc' => '',
'shortdesc' => '',
'stock' => 0,
'onstock' => false,
'manufacturerid' => '',
'manufacturer_title' => '',
'price' => 0.0,
'insert' => NULL,
'soldamount' => 0,
'rating' => 0.0,
'searchable' => true,
'picture_url_main' =>
array (
),
'es_id' => NULL,
'id' => 'phpunit_product',
'timestamp' => NULL,
'url' => NULL,
'active' => true,
'shop' =>
array (
),
'additionalData' =>
array (
),
));
Original file line number Diff line number Diff line change
@@ -1,44 +1,4 @@
<?php return \Makaira\Connect\Type\Product\Product::__set_state(array(
'es_id' => NULL,
'id' => 'phpunit_product',
'timestamp' => NULL,
'url' => NULL,
'active' => true,
'shop' =>
array (
),
'additionalData' =>
array (
),
'attributeStr' =>
array (
),
'attributeInt' =>
array (
),
'attributeFloat' =>
array (
),
'isPseudo' => false,
'ean' => '',
'title' => '',
'searchkeys' => '',
'hidden' => false,
'sort' => 0,
'longdesc' => '',
'shortdesc' => '',
'stock' => 0,
'onstock' => false,
'manufacturerid' => '',
'manufacturer_title' => '',
'price' => 0.0,
'insert' => NULL,
'soldamount' => 0,
'rating' => 0.0,
'searchable' => true,
'picture_url_main' =>
array (
),
<?php return Makaira\Connect\Type\Product\Product::__set_state(array(
'attributes' =>
array (
0 =>
Expand Down Expand Up @@ -80,4 +40,44 @@
'tmpAttributeFloat' =>
array (
),
));
'attributeStr' =>
array (
),
'attributeInt' =>
array (
),
'attributeFloat' =>
array (
),
'isPseudo' => false,
'ean' => '',
'title' => '',
'searchkeys' => '',
'hidden' => false,
'sort' => 0,
'longdesc' => '',
'shortdesc' => '',
'stock' => 0,
'onstock' => false,
'manufacturerid' => '',
'manufacturer_title' => '',
'price' => 0.0,
'insert' => NULL,
'soldamount' => 0,
'rating' => 0.0,
'searchable' => true,
'picture_url_main' =>
array (
),
'es_id' => NULL,
'id' => 'phpunit_product',
'timestamp' => NULL,
'url' => NULL,
'active' => true,
'shop' =>
array (
),
'additionalData' =>
array (
),
));
7 changes: 7 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@
if (!class_exists('OxidEsales\\EshopCommunity\\Internal\\Container\\ContainerFactory')) {
require_once __DIR__ . '/Makaira/Connect/OxidMocks/ContainerFactory.php';
}

if (!function_exists('str_contains')) {
function str_contains(string $haystack, string $needle): bool
{
return $needle !== '' && mb_strpos($haystack, $needle) !== false;
}
}

0 comments on commit 3ce12a7

Please sign in to comment.