From b7aa7f4ea78952e5f3d389a2bfb013bf3a8cf784 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Sat, 11 Jun 2022 21:07:46 -0700 Subject: [PATCH] Scaffold unit tests --- phpcs.xml | 1 - ...external-permalinks-redux-block-editor.php | 34 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 tests/test-class-external-permalinks-redux-block-editor.php diff --git a/phpcs.xml b/phpcs.xml index c03277e..4bd1fae 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -6,7 +6,6 @@ <file>.</file> <exclude-pattern>/assets/build/</exclude-pattern> <exclude-pattern>/node_modules/</exclude-pattern> - <exclude-pattern>/tests/*</exclude-pattern> <!-- How to scan --> <!-- Usage instructions: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage --> diff --git a/tests/test-class-external-permalinks-redux-block-editor.php b/tests/test-class-external-permalinks-redux-block-editor.php new file mode 100644 index 0000000..c563510 --- /dev/null +++ b/tests/test-class-external-permalinks-redux-block-editor.php @@ -0,0 +1,34 @@ +<?php +/** + * Test block-editor integration. + * + * @pacakge External_Permalinks_Redux + */ + +/** + * Class TestClassExternalPermalinksReduxBlockEditor. + * + * @coversDefaultClass External_Permalinks_Redux_Block_Editor + */ +class TestClassExternalPermalinksReduxBlockEditor extends WP_UnitTestCase { + /** + * @covers ::register_meta() + */ + public function test_register_meta() { + $this->markTestIncomplete( 'This test has not been implemented.' ); + } + + /** + * @covers ::allow_meta_updates() + */ + public function test_allow_meta_updates() { + $this->markTestIncomplete( 'This test has not been implemented.' ); + } + + /** + * @covers ::enqueue() + */ + public function test_enqueue() { + $this->markTestIncomplete( 'This test has not been implemented.' ); + } +} -- GitLab