Skip to content

Commit

Permalink
Setup CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheu committed Sep 4, 2023
1 parent 89bacfe commit 671ecaf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/phpunit/test-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
use const Authorship\TAXONOMY;

class TestCLI extends TestCase {
public function set_up() {
parent::set_up();
require_once __DIR__ . '/inc/cli/namespace.php';
require_once __DIR__ . '/inc/cli/class-migrate-command.php';
CLI\bootstrap();
}

public function testMigratePostTypePost() : void {
$factory = self::factory()->post;

Expand All @@ -29,7 +36,7 @@ public function testMigratePostTypePost() : void {
$authorship_authors = \Authorship\get_authors( $post1 );
$this->assertCount( 0, $authorship_authors );

$command = new CLI\Migrate_Command();
$command = new CLI\Migrate_Command;
$command->wp_authors( [], [
'dry-run' => false,
] );
Expand Down

0 comments on commit 671ecaf

Please sign in to comment.