Skip to content

Commit

Permalink
tests: add incomplete tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinderk committed Feb 9, 2023
1 parent fd218d5 commit c9aa80a
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 4 deletions.
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<phpunit
bootstrap="./tests/php/bootstrap.php.dist"
bootstrap="./tests/php/bootstrap.php"
backupGlobals="false"
colors="true"
>
Expand Down
41 changes: 41 additions & 0 deletions tests/php/EnqueueScriptTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

namespace Distributor;

use WP_Mock\Tools\TestCase;

/**
* @unreleased x.x.x
*/
class EnqueueScriptTest extends TestCase {
public function testScriptRegistration(): void {
$this->markTestIncomplete();
}

public function testScriptEnqueue() {
$this->markTestIncomplete();
}

public function testCustomVersion() {
$this->markTestIncomplete();
}

public function testCustomDependencies() {
$this->markTestIncomplete();
}

public function testTranslations() {
$this->markTestIncomplete();
}

public function testLocalizeData() {
$this->markTestIncomplete();
}

public function testLoadScriptInFooter() {
$this->markTestIncomplete();
}
}

class EnqueueScriptMock extends EnqueueScript {
}
7 changes: 4 additions & 3 deletions tests/php/bootstrap.php.dist → tests/php/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
WP_Mock::setUsePatchwork( true );
WP_Mock::bootstrap();

define( 'DT_PLUGIN_PATH', dirname( __DIR__, 2 ) );

require_once __DIR__ . '/includes/common.php';
require_once __DIR__ . '/includes/TestCase.php';

require_once( __DIR__ . '/../../includes/hooks.php' );
// Load plugin files.
require_once( __DIR__ . '/../../includes/utils.php' );
require_once( __DIR__ . '/../../includes/debug-info.php' );
require_once( __DIR__ . '/../../includes/subscriptions.php' );
require_once( __DIR__ . '/../../includes/global-functions.php' );

require_once __DIR__ . '/includes/TestCase.php';

0 comments on commit c9aa80a

Please sign in to comment.