From ec407e8c3dd333f9358755589a0361d4933d2f10 Mon Sep 17 00:00:00 2001 From: Tom Arbesser-Rastburg Date: Tue, 25 Apr 2023 13:40:57 +1000 Subject: [PATCH] Add CircleCI config --- .circleci/config.yml | 15 +++++++++++++++ test/Unit/Api/ClientTest.php | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..d4a3aa5 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,15 @@ +version: 2.1 + +orbs: + ci: bigcommerce/internal@volatile + php: bigcommerce/internal-php@volatile + +workflows: + version: 2 + full: + jobs: + - php/phpunit-tests: + configuration: "phpunit.xml.dist" + matrix: + parameters: + php-version: [ "8.0", "8.1", "8.2" ] diff --git a/test/Unit/Api/ClientTest.php b/test/Unit/Api/ClientTest.php index e3c8aa5..c84c14e 100644 --- a/test/Unit/Api/ClientTest.php +++ b/test/Unit/Api/ClientTest.php @@ -437,7 +437,7 @@ public function testGettingProductImagesReturnsCollectionOfProductImages() { $this->connection->expects($this->once()) ->method('get') - ->with($this->basePath . '/products/1/images/', false) + ->with($this->basePath . '/products/1/images', false) ->will($this->returnValue(array(array(), array()))); $collection = Client::getProductImages(1);