Skip to content
Snippets Groups Projects
Verified Commit d28fee48 authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

refactor: remove unused tests

parent b6d626a4
No related branches found
No related tags found
3 merge requests!3improve into wp-hook and some additional unfinished things,!21.x,!1Draft: Basic implementation of plugin initializer
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
<?php
declare( strict_types=1 );
namespace WPDesk\Init\Tests;
use WPDesk\Init\Configuration\Configuration;
use WPDesk\Init\Dumper\PhpFileDumper;
use WPDesk\Init\Loader\PhpFileLoader;
use WPDesk\Init\PluginHeaderData;
use WPDesk\Init\DefaultHeaderParser;
class PluginHeaderDataTest extends TestCase {
public function test_loading_cached_plugin_data() {
$dir = $this->initTempPlugin();
$header = new PluginHeaderData(
new DefaultHeaderParser(),
new PhpFileLoader(),
new PhpFileDumper(),
new Configuration( [] )
);
$this->assertFileDoesNotExist( $dir . '/generated/plugin.php' );
$header->get_plugin_data( $dir . '/simple-plugin.php' );
$this->assertFileExists( $dir . '/generated/plugin.php' );
$header->get_plugin_data( $dir . '/simple-plugin.php' );
}
}
\ No newline at end of file
<?php
declare( strict_types=1 );
namespace WPDesk\Init\Tests;
class PluginTest extends \PHPUnit\Framework\TestCase {
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment