Effortlessly integrate your Shopify store with UnoPim for seamless product data management and synchronization. You can currently export catalogs, including categories and both simple and variant products, from UnoPim to Shopify.
- Unopim: v0.1.3
- Run the following command
composer require unopim/shopify-connector - Run the command to execute migrations and clear the cache.
php artisan shopify-package:install; php artisan optimize:clear;-
Register Test Directory
In thecomposer.jsonfile, register the test directory under theautoload-devpsr-4section:"Webkul\\Shopify\\Tests\\": "vendor/unopim/shopify-connector/tests/"
-
Configure TestCase
Open thetests/Pest.phpfile and add this line:uses(Webkul\Shopify\Tests\ShopifyTestCase::class)->in('../vendor/unopim/shopify-connector/tests');
-
Dump Composer Autoload for Tests
composer dump-autoload
-
Run Tests
To run tests for the Shopify package, use the following command:./vendor/bin/pest ./vendor/unopim/shopify-connector/tests
Download and unzip the respective extension zip. Rename the folder to Shopify and move into the packages/Webkul directory of the project's root directory.
-
Regsiter the package provider In the
config/app.phpfile add the below provider class under theproviderskeyWebkul\Shopify\Providers\ShopifyServiceProvider::class,
-
In the
composer.jsonfile register the test directory under theautoloadpsr-4section"Webkul\\Shopify\\": "packages/Webkul/Shopify/src"
-
Run below given commands
composer dump-autoload php artisan shopify-package:install php artisan optimize:clear
-
Register Test Directory Register test directory in
composer.jsonunder theautoload-devpsr-4section"Webkul\\Shopify\\Tests\\": "packages/Webkul/Shopify/tests"
-
Configure TestCase
- Configure the testcase in
tests/Pest.php. Add the following line:
uses(Webkul\Shopify\Tests\ShopifyTestCase::class)->in('../packages/Webkul/Shopify/tests');
- Configure the testcase in
-
Dump Composer Autoload for Tests
- Dump composer autolaod for tests directory
composer dump-autoload; -
Run Tests
- Run tests for only this package with the below command
./vendor/bin/pest ./packages/Webkul/Shopify/tests/Feature