🚀 Hostinger Optimized
🖥️ Server: Apache
💻 System: Linux webm015.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
👤 User: stakrfrcol (69043)
🐘 PHP: 8.3.31
🚫 Disabled: _dyuweyrj4,_dyuweyrj4r,dl

💻 Terminal

📁 /home/stakrfrcol/agency
$

📄 ZipExportedSchemaTest.php

📁 Path: ./wp-content/plugins/woocommerce/vendor/woocommerce/blueprint/tests/Unit/ZipExportedSchemaTest.php
📊 Size: 970 B
🔒 Perm: 0644
📝 MIME: text/x-php
<?php

namespace Automattic\WooCommerce\Blueprint\Tests\Unit;

use Automattic\WooCommerce\Blueprint\Tests\TestCase;
use Automattic\WooCommerce\Blueprint\ZipExportedSchema;

/**
 * Class ZipExportedSchemaTest
 */
class ZipExportedSchemaTest extends TestCase {
	/**
	 * Test it throws exception on invalid plugin slug.
	 *
	 * @return void
	 * @throws \Exception If the plugin slug is invalid.
	 */
	public function test_it_throws_invalid_argument_exception_with_invalid_slug() {
		$this->expectException( \InvalidArgumentException::class );
		// phpcs:ignore
		$json = json_decode( file_get_contents( $this->get_fixture_path( 'install-plugin-with-invalid-slug.json' ) ), true );
		$mock = Mock( ZipExportedSchema::class, array( $json ) );
		$mock->makePartial();
		$mock->shouldAllowMockingProtectedMethods();
		$mock->shouldReceive( 'maybe_create_dir' )->andReturn( null );
		$mock->shouldReceive( 'wp_filesystem_put_contents' )->andReturn( null );
		$mock->zip();
	}
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨