Skip to content

Commit

Permalink
Prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
balexey88 committed Oct 18, 2024
1 parent 27176ab commit d31f68b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions tests/ClassPolylangProTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
use PHPUnit\Framework\TestCase;
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
use Brain\Monkey;
use Brain\Monkey\Actions;
use Brain\Monkey\Filters;
use Brain\Monkey\Functions;
use wpCloud\StatelessMedia\WPStatelessStub;

/**
Expand Down Expand Up @@ -33,6 +36,15 @@ public function testShouldInitHooks() {
self::assertNotFalse( has_action('pll_translate_media', [ $polylangPro, 'pll_translate_media' ]) );
}

public function testShouldCountHooks() {
$polylangPro = new PolylangPro();

Functions\expect('add_action')->times(1);
Functions\expect('add_filter')->times(0);

$polylangPro->module_init([]);
}

public function testShouldHookToTranslatedMedia() {
$polylangPro = new PolylangPro();

Expand Down
2 changes: 1 addition & 1 deletion vendor/bin/.phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":1,"defects":{"WPSL\\PolylangPro\\ClassPolylangProTest::testShouldHookToTranslatedMedia":3},"times":{"WPSL\\PolylangPro\\ClassPolylangProTest::testShouldInitHooks":0.071,"WPSL\\PolylangPro\\ClassPolylangProTest::testShouldHookToTranslatedMedia":0.003,"SLCA\\PolylangPro\\ClassPolylangProTest::testShouldInitHooks":0.074,"SLCA\\PolylangPro\\ClassPolylangProTest::testShouldHookToTranslatedMedia":0.003}}
{"version":1,"defects":{"WPSL\\PolylangPro\\ClassPolylangProTest::testShouldHookToTranslatedMedia":3,"SLCA\\PolylangPro\\ClassPolylangProTest::testShouldCountHooks":4},"times":{"WPSL\\PolylangPro\\ClassPolylangProTest::testShouldInitHooks":0.071,"WPSL\\PolylangPro\\ClassPolylangProTest::testShouldHookToTranslatedMedia":0.003,"SLCA\\PolylangPro\\ClassPolylangProTest::testShouldInitHooks":0.073,"SLCA\\PolylangPro\\ClassPolylangProTest::testShouldHookToTranslatedMedia":0.004,"SLCA\\PolylangPro\\ClassPolylangProTest::testShouldCountHooks":0.048}}
4 changes: 2 additions & 2 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => 'udx/wp-stateless-polylang-pro-addon',
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '3797ee5f24f994f8c5f8703fdf3060523d703aa9',
'reference' => '27176abed5954b7f0e8c0eae629fcd88632fede0',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,7 +13,7 @@
'udx/wp-stateless-polylang-pro-addon' => array(
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '3797ee5f24f994f8c5f8703fdf3060523d703aa9',
'reference' => '27176abed5954b7f0e8c0eae629fcd88632fede0',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down

0 comments on commit d31f68b

Please sign in to comment.