From 7fa4603a9b18dfac02e9fd7b60a594c9477e2887 Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Fri, 1 May 2020 15:06:22 -0400 Subject: [PATCH] new test added. --- .env.dist | 2 +- .github/workflows/testing-integration.yml | 21 +++----- bin/testing-entrypoint.sh | 16 +++++- includes/data/class-factory.php | 2 +- includes/model/class-customer.php | 1 - includes/type/object/class-customer-type.php | 2 - tests/_support/Helper/GraphQLE2E.php | 45 ++++++++++++++++- .../_support/Helper/crud-helpers/customer.php | 4 +- .../ReturningCustomerSessionCept.php | 49 +++++++++++++++++++ tests/functional/QLSessionHandlerCest.php | 49 ++++++++++++++++--- tests/wpunit/ConnectionPaginationTest.php | 9 +++- tests/wpunit/CustomerQueriesTest.php | 26 ++++++---- tests/wpunit/DownloadableItemQueriesTest.php | 11 +++-- tests/wpunit/MetaDataQueriesTest.php | 7 ++- vendor/autoload.php | 2 +- vendor/composer/autoload_real.php | 17 ++++--- vendor/composer/autoload_static.php | 8 +-- 17 files changed, 215 insertions(+), 56 deletions(-) create mode 100644 tests/acceptance/ReturningCustomerSessionCept.php diff --git a/.env.dist b/.env.dist index b6fe331b..b584292d 100644 --- a/.env.dist +++ b/.env.dist @@ -28,7 +28,7 @@ TESTS_ENVS=tests/_envs CORE_BRANCH=develop JWT_AUTH_BRANCH=develop -SKIP_TEST_CLEANUP="1" +SKIP_PCOV_CLOBBER_CLEANUP=true STRIPE_GATEWAY=1 GRAPHQL_JWT_AUTH_SECRET_KEY=testingtesting123 STRIPE_API_PUBLISHABLE_KEY=test_key diff --git a/.github/workflows/testing-integration.yml b/.github/workflows/testing-integration.yml index c71298a3..86ca3517 100644 --- a/.github/workflows/testing-integration.yml +++ b/.github/workflows/testing-integration.yml @@ -20,39 +20,31 @@ jobs: debug: 0 strategy: matrix: - php: ['7.3', '7.2', '7.1', '7.0'] - wordpress: ['5.3', '5.0', '4.9'] + php: ['7.3', '7.2', '7.1'] + wordpress: ['5.3', '5.0'] include: - - php: '7.0' + - php: '7.1' use_xdebug: 1 - - php: '7.0' + - php: '7.1' wordpress: '5.0' coverage: 1 - php: '7.3' wordpress: '5.0' debug: 1 - exclude: - - php: '7.3' - wordpress: '4.9' - - php: '7.2' - wordpress: '4.9' - - php: '7.0' - wordpress: '5.3' fail-fast: false name: WordPress ${{ matrix.wordpress }} on PHP ${{ matrix.php }} steps: - name: Checkout uses: actions/checkout@v2 with: - ref: ${{ github.ref }} + ref: ${{ github.base_ref }} - name: Install PHP if: matrix.coverage == 1 - uses: shivammathur/setup-php@1.7.0 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} - coverage: pcov extensions: json, mbstring - name: Build "testing" Docker Image @@ -70,6 +62,7 @@ jobs: -e STRIPE_API_SECRET_KEY=${{ secrets.STRIPE_API_SECRET_KEY }} \ -e COVERAGE=${{ matrix.coverage }} \ -e DEBUG=${{ matrix.debug }} \ + -e SKIP_TESTS_CLEANUP=${{ matrix.coverage }} \ testing --scale app=0 - name: Push Codecoverage to Coveralls.io diff --git a/bin/testing-entrypoint.sh b/bin/testing-entrypoint.sh index f2db652c..6329f583 100644 --- a/bin/testing-entrypoint.sh +++ b/bin/testing-entrypoint.sh @@ -18,10 +18,22 @@ run_tests() { } # Exits with a status of 0 (true) if provided version number is higher than proceeding numbers. -function version_gt() { +version_gt() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"; } +write_htaccess() { + echo " +RewriteEngine On +SetEnvIf Authorization \"(.*)\" HTTP_AUTHORIZATION=\$1 +RewriteBase /wordpress/ +RewriteRule ^index\.php$ - [L] +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule . /index.php [L] +" >> ${WP_ROOT_FOLDER}/.htaccess +} + # Move to WordPress root folder workdir="$PWD" echo "Moving to WordPress root directory." @@ -30,6 +42,8 @@ cd ${WP_ROOT_FOLDER} # Run app entrypoint script. . app-entrypoint.sh +write_htaccess + # Deactivate WP-GraphQL-JWT-Authentication wp plugin deactivate wp-graphql-jwt-authentication --allow-root diff --git a/includes/data/class-factory.php b/includes/data/class-factory.php index 53e0cb65..9470b08b 100644 --- a/includes/data/class-factory.php +++ b/includes/data/class-factory.php @@ -45,7 +45,7 @@ class Factory { * @access public */ public static function resolve_session_customer() { - return \WC()->customer; + return new Customer(); } /** diff --git a/includes/model/class-customer.php b/includes/model/class-customer.php index a31d6488..6e1f0dd4 100644 --- a/includes/model/class-customer.php +++ b/includes/model/class-customer.php @@ -32,7 +32,6 @@ class Customer extends Model { 'isPublic', 'id', 'customerId', - 'displayName', ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound diff --git a/includes/type/object/class-customer-type.php b/includes/type/object/class-customer-type.php index 475808f0..2a599d01 100644 --- a/includes/type/object/class-customer-type.php +++ b/includes/type/object/class-customer-type.php @@ -140,8 +140,6 @@ class Customer_Type { $customer_id = absint( $id_components['id'] ); } elseif ( ! empty( $args['customerId'] ) ) { $customer_id = absint( $args['customerId'] ); - } else { - $customer_id = get_current_user_id(); } $authorized = ! empty( $customer_id ) diff --git a/tests/_support/Helper/GraphQLE2E.php b/tests/_support/Helper/GraphQLE2E.php index 3f70fb60..c5d128f5 100644 --- a/tests/_support/Helper/GraphQLE2E.php +++ b/tests/_support/Helper/GraphQLE2E.php @@ -26,6 +26,35 @@ class GraphQLE2E extends \Codeception\Module { } } + /** + * Authenticates User. + * + * @param array $input + * @param string $session_header + * @return array + */ + public function login( $input, $request_headers = array() ) { + $mutation = ' + mutation ( $input: LoginInput! ) { + login( input: $input ) { + clientMutationId + authToken + refreshToken + customer { + customerId + username + } + } + } + '; + + // Send GraphQL request and get response. + $response = $this->sendGraphQLRequest( $mutation, $input, $request_headers ); + + // Return response. + return $response; + } + /** * Adds item to cart. * @@ -789,7 +818,7 @@ class GraphQLE2E extends \Codeception\Module { * Deletes shipping method settings, updates the "shipping" group transient * and unregisters all shipping methods. * - * Should be done after have tests. + * Should be done after each tests. */ public function delete_shipping_methods() { delete_option( 'woocommerce_flat_rate_settings' ); @@ -865,4 +894,18 @@ class GraphQLE2E extends \Codeception\Module { $wpdb->haveTermRelationshipInDatabase( $product_id, $term_id ); } + + public function createOldSession() { + $products = $this->getCatalog(); + + $wpdb = $this->getModule( 'WPDb' ); + $userId = $wpdb->haveUserInDatabase( + 'jimbo1234', + 'customer', + [ + 'user_pass' => 'password', + 'user_email' => 'jimbo1234@example.com', + ] + ); + } } diff --git a/tests/_support/Helper/crud-helpers/customer.php b/tests/_support/Helper/crud-helpers/customer.php index a92d660f..2a481faa 100644 --- a/tests/_support/Helper/crud-helpers/customer.php +++ b/tests/_support/Helper/crud-helpers/customer.php @@ -76,8 +76,8 @@ class CustomerHelper extends WCG_Helper { return absint( $customer->save() ); } - public function print_query( $id ) { - $data = new WC_Customer( $id ); + public function print_query( $id, $session = false ) { + $data = new WC_Customer( $id, $session ); $wp_user = get_user_by( 'ID', $data->get_id() ); return array( diff --git a/tests/acceptance/ReturningCustomerSessionCept.php b/tests/acceptance/ReturningCustomerSessionCept.php new file mode 100644 index 00000000..74623c59 --- /dev/null +++ b/tests/acceptance/ReturningCustomerSessionCept.php @@ -0,0 +1,49 @@ +createOldSession(); + +// Begin Tests. +$I->wantTo('login'); +$login_input = array( + 'clientMutationId' => 'someId', + 'username' => 'jimbo1234', + 'password' => 'password', +); + +$success = $I->login( $login_input ); + +$I->assertArrayNotHasKey( 'errors', $success ); +$I->assertArrayHasKey('data', $success ); +$I->assertArrayHasKey('login', $success['data'] ); +$I->assertArrayHasKey('customer', $success['data']['login'] ); +$I->assertArrayHasKey('authToken', $success['data']['login'] ); +$I->assertArrayHasKey('refreshToken', $success['data']['login'] ); +$authToken = $success['data']['login']['authToken']; +$customer_id = $success['data']['login']['customer']['customerId']; + +$I->wantTo('Get current username'); +$query = ' + query { + customer { + customerId + username + } + } +'; + +$success = $I->sendGraphQLRequest( + $query, + null, + array( 'Authorization' => "Bearer {$authToken}" ) +); + +$expected_results = array( + 'data' => array( + 'customer' => array( + 'customerId' => $customer_id, + 'username' => 'jimbo1234' + ) + ) +); + +$I->assertEquals( $expected_results, $success ); \ No newline at end of file diff --git a/tests/functional/QLSessionHandlerCest.php b/tests/functional/QLSessionHandlerCest.php index 2875866c..64cdf3cb 100644 --- a/tests/functional/QLSessionHandlerCest.php +++ b/tests/functional/QLSessionHandlerCest.php @@ -10,10 +10,6 @@ class QLSessionHandlerCest { $this->product_catalog = $I->getCatalog(); } - public function _after( FunctionalTester $I ) { - $I->delete_shipping_methods(); - } - // tests public function testCartMutationsWithValidCartSessionToken( FunctionalTester $I ) { /** @@ -429,6 +425,49 @@ class QLSessionHandlerCest { $wp_url = getenv( 'WP_URL' ); $I->assertEquals( $token_data->iss, $wp_url ); + /** + * Set shipping address, so shipping rates can be calculated + */ + $input = array( + 'clientMutationId' => 'someId', + 'shipping' => array( + 'state' => 'New York', + 'country' => 'US', + 'postcode' => '12345', + ) + ); + + $mutation = ' + mutation ( $input: UpdateCustomerInput! ){ + updateCustomer ( input: $input ) { + customer { + shipping { + state + country + postcode + } + } + } + } + '; + + $actual = $I->sendGraphQLRequest( $mutation, $input, array( 'woocommerce-session' => "Session {$session_token}" ) ); + $expected = array( + 'data' => array( + 'updateCustomer' => array( + 'customer' => array( + 'shipping' => array( + 'state' => 'New York', + 'country' => 'US', + 'postcode' => '12345' + ), + ), + ), + ), + ); + + $I->assertEquals( $expected, $actual ); + /** * Make a cart query request with "woocommerce-session" HTTP Header and confirm * correct cart contents and chosen and available shipping methods. @@ -450,7 +489,6 @@ class QLSessionHandlerCest { label } } - chosenShippingMethod } } '; @@ -484,7 +522,6 @@ class QLSessionHandlerCest { ) ) ), - 'chosenShippingMethod' => null, ), ), ); diff --git a/tests/wpunit/ConnectionPaginationTest.php b/tests/wpunit/ConnectionPaginationTest.php index fdcc710f..29e189a3 100644 --- a/tests/wpunit/ConnectionPaginationTest.php +++ b/tests/wpunit/ConnectionPaginationTest.php @@ -31,6 +31,11 @@ class ConnectionPaginationTest extends \Codeception\TestCase\WPTestCase { parent::tearDown(); } + public function set_user( $user ) { + wp_set_current_user( $user ); + WC()->customer = new WC_Customer( get_current_user_id(), true ); + } + // tests public function testCouponsPagination() { $coupons = array( @@ -64,7 +69,7 @@ class ConnectionPaginationTest extends \Codeception\TestCase\WPTestCase { } '; - wp_set_current_user( $this->shop_manager ); + $this->set_user( $this->shop_manager ); /** * Assertion One @@ -582,7 +587,7 @@ class ConnectionPaginationTest extends \Codeception\TestCase\WPTestCase { } '; - wp_set_current_user( $customer_id ); + $this->set_user( $customer_id ); /** * Assertion One diff --git a/tests/wpunit/CustomerQueriesTest.php b/tests/wpunit/CustomerQueriesTest.php index 99146391..022ac457 100644 --- a/tests/wpunit/CustomerQueriesTest.php +++ b/tests/wpunit/CustomerQueriesTest.php @@ -24,6 +24,11 @@ class CustomerQueriesTest extends \Codeception\TestCase\WPTestCase { parent::tearDown(); } + public function set_user( $user ) { + wp_set_current_user( $user ); + WC()->customer = new WC_Customer( get_current_user_id(), true ); + } + // tests public function testCustomerQueryAndArgs() { $query = ' @@ -84,7 +89,7 @@ class CustomerQueriesTest extends \Codeception\TestCase\WPTestCase { * * Query should return null value due to lack of permissions. */ - wp_set_current_user( $this->customer ); + $this->set_user( $this->customer ); $variables = array( 'id' => Relay::toGlobalId( 'customer', $this->new_customer ) ); $actual = graphql( array( 'query' => $query, 'variables' => $variables ) ); @@ -121,7 +126,7 @@ class CustomerQueriesTest extends \Codeception\TestCase\WPTestCase { * Query should return requested data because has sufficient permissions, * but should not have access to JWT fields. */ - wp_set_current_user( $this->shop_manager ); + $this->set_user( $this->shop_manager ); $variables = array( 'id' => Relay::toGlobalId( 'customer', $this->new_customer ) ); $actual = graphql( array( 'query' => $query, 'variables' => $variables ) ); $expected = array( 'data' => array( 'customer' => $this->helper->print_query( $this->new_customer ) ) ); @@ -140,21 +145,24 @@ class CustomerQueriesTest extends \Codeception\TestCase\WPTestCase { * * Query should return data corresponding with current user when no ID is provided. */ - wp_set_current_user( $this->new_customer ); + $this->set_user( $this->new_customer ); $actual = graphql( array( 'query' => $query ) ); - $expected = array( 'data' => array( 'customer' => $this->helper->print_query( $this->new_customer ) ) ); + $expected = array( 'data' => array( 'customer' => $this->helper->print_query( $this->new_customer, true ) ) ); // use --debug flag to view. codecept_debug( $actual ); $this->assertEquals( $expected, $actual ); + + // Clear customer cache. + $this->getModule('\Helper\Wpunit')->clear_loader_cache( 'wc_customer' ); /** * Assertion Five * * Query should return requested data because user queried themselves. */ - wp_set_current_user( $this->new_customer ); + $this->set_user( $this->new_customer ); $variables = array( 'customerId' => $this->new_customer ); $actual = graphql( array( 'query' => $query, 'variables' => $variables ) ); $expected = array( 'data' => array( 'customer' => $this->helper->print_query( $this->new_customer ) ) ); @@ -172,7 +180,7 @@ class CustomerQueriesTest extends \Codeception\TestCase\WPTestCase { * * Query should return null value due to lack of permissions.. */ - wp_set_current_user( $this->customer ); + $this->set_user( $this->customer ); $variables = array( 'customerId' => $this->new_customer ); $actual = graphql( array( 'query' => $query, 'variables' => $variables ) ); @@ -230,7 +238,7 @@ class CustomerQueriesTest extends \Codeception\TestCase\WPTestCase { * * Query should return null value due to lack of capabilities... */ - wp_set_current_user( $this->customer ); + $this->set_user( $this->customer ); $actual = graphql( array( 'query' => $query ) ); $expected = array( 'data' => array( 'customers' => array( 'nodes' => array() ) ) ); @@ -247,7 +255,7 @@ class CustomerQueriesTest extends \Codeception\TestCase\WPTestCase { * * Query should return requested data because user has proper capabilities. */ - wp_set_current_user( $this->shop_manager ); + $this->set_user( $this->shop_manager ); $actual = graphql( array( 'query' => $query ) ); $expected = array( 'data' => array( @@ -499,7 +507,7 @@ class CustomerQueriesTest extends \Codeception\TestCase\WPTestCase { * * Query for authenticated customer's orders. */ - wp_set_current_user( $this->customer ); + $this->set_user( $this->customer ); $actual = graphql( array( 'query' => $query ) ); $expected = array( 'data' => array( diff --git a/tests/wpunit/DownloadableItemQueriesTest.php b/tests/wpunit/DownloadableItemQueriesTest.php index 5d767262..6df15b8a 100644 --- a/tests/wpunit/DownloadableItemQueriesTest.php +++ b/tests/wpunit/DownloadableItemQueriesTest.php @@ -23,6 +23,11 @@ class DownloadableItemQueriesTest extends \Codeception\TestCase\WPTestCase parent::tearDown(); } + public function set_user( $user ) { + wp_set_current_user( $user ); + WC()->customer = new WC_Customer( get_current_user_id(), true ); + } + // tests public function testOrderToDownloadableItemsQuery() { $downloadable_product = $this->products->create_simple( @@ -80,7 +85,7 @@ class DownloadableItemQueriesTest extends \Codeception\TestCase\WPTestCase * * tests query results */ - wp_set_current_user( $this->customer ); + $this->set_user( $this->customer ); $actual = graphql( array( 'query' => $query ) ); $expected = array( 'data' => array( @@ -175,7 +180,7 @@ class DownloadableItemQueriesTest extends \Codeception\TestCase\WPTestCase * * tests "active" whereArg */ - wp_set_current_user( $this->customer ); + $this->set_user( $this->customer ); $actual = graphql( array( 'query' => $query, @@ -372,7 +377,7 @@ class DownloadableItemQueriesTest extends \Codeception\TestCase\WPTestCase * * tests query results */ - wp_set_current_user( $this->customer ); + $this->set_user( $this->customer ); $actual = graphql( array( 'query' => $query ) ); $expected = array( 'data' => array( diff --git a/tests/wpunit/MetaDataQueriesTest.php b/tests/wpunit/MetaDataQueriesTest.php index 693fcd19..4ad61590 100644 --- a/tests/wpunit/MetaDataQueriesTest.php +++ b/tests/wpunit/MetaDataQueriesTest.php @@ -34,6 +34,11 @@ class MetaDataQueriesTest extends \Codeception\TestCase\WPTestCase { parent::tearDown(); } + public function set_user( $user ) { + wp_set_current_user( $user ); + WC()->customer = new WC_Customer( get_current_user_id(), true ); + } + private function createObjects() { $data = array( 'meta_data' => array( @@ -415,7 +420,7 @@ class MetaDataQueriesTest extends \Codeception\TestCase\WPTestCase { /** * Assertion One */ - wp_set_current_user( $this->customer_id ); + $this->set_user( $this->customer_id ); $actual = graphql( array( 'query' => $query ) ); $expected = array( 'data' => array( diff --git a/vendor/autoload.php b/vendor/autoload.php index 3c5ee8e6..0ba92631 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit19c0191cc8bc59057d45745b3198d15d::getLoader(); +return ComposerAutoloaderInitf4aabce78570c8de4d860d7a71f797b9::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 5e6738d3..53ab6084 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit19c0191cc8bc59057d45745b3198d15d +class ComposerAutoloaderInitf4aabce78570c8de4d860d7a71f797b9 { private static $loader; @@ -13,21 +13,24 @@ class ComposerAutoloaderInit19c0191cc8bc59057d45745b3198d15d } } + /** + * @return \Composer\Autoload\ClassLoader + */ public static function getLoader() { if (null !== self::$loader) { return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit19c0191cc8bc59057d45745b3198d15d', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInitf4aabce78570c8de4d860d7a71f797b9', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInit19c0191cc8bc59057d45745b3198d15d', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInitf4aabce78570c8de4d860d7a71f797b9', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit19c0191cc8bc59057d45745b3198d15d::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInitf4aabce78570c8de4d860d7a71f797b9::getInitializer($loader)); } else { $map = require __DIR__ . '/autoload_namespaces.php'; foreach ($map as $namespace => $path) { @@ -48,19 +51,19 @@ class ComposerAutoloaderInit19c0191cc8bc59057d45745b3198d15d $loader->register(true); if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInit19c0191cc8bc59057d45745b3198d15d::$files; + $includeFiles = Composer\Autoload\ComposerStaticInitf4aabce78570c8de4d860d7a71f797b9::$files; } else { $includeFiles = require __DIR__ . '/autoload_files.php'; } foreach ($includeFiles as $fileIdentifier => $file) { - composerRequire19c0191cc8bc59057d45745b3198d15d($fileIdentifier, $file); + composerRequiref4aabce78570c8de4d860d7a71f797b9($fileIdentifier, $file); } return $loader; } } -function composerRequire19c0191cc8bc59057d45745b3198d15d($fileIdentifier, $file) +function composerRequiref4aabce78570c8de4d860d7a71f797b9($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { require $file; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 6a153884..7ff03750 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit19c0191cc8bc59057d45745b3198d15d +class ComposerStaticInitf4aabce78570c8de4d860d7a71f797b9 { public static $files = array ( '944484f100dc1864a5320474d49ebd5a' => __DIR__ . '/../..' . '/includes/connection/wc-cpt-connection-args.php', @@ -177,9 +177,9 @@ class ComposerStaticInit19c0191cc8bc59057d45745b3198d15d public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit19c0191cc8bc59057d45745b3198d15d::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit19c0191cc8bc59057d45745b3198d15d::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit19c0191cc8bc59057d45745b3198d15d::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInitf4aabce78570c8de4d860d7a71f797b9::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitf4aabce78570c8de4d860d7a71f797b9::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInitf4aabce78570c8de4d860d7a71f797b9::$classMap; }, null, ClassLoader::class); }