From 7011da2564379d980465889f3957e51656e50e0f Mon Sep 17 00:00:00 2001 From: colemanw Date: Mon, 2 Oct 2023 18:20:12 -0400 Subject: [PATCH] Test weird --- tests/phpunit/api/v4/Action/ActionNameTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/phpunit/api/v4/Action/ActionNameTest.php b/tests/phpunit/api/v4/Action/ActionNameTest.php index 46d27dca45..3799985687 100644 --- a/tests/phpunit/api/v4/Action/ActionNameTest.php +++ b/tests/phpunit/api/v4/Action/ActionNameTest.php @@ -47,6 +47,12 @@ class ActionNameTest extends Api4TestBase { // then this test will no longer be testing what it thinks it's testing! $this->assertFalse(method_exists(MockArrayEntity::class, 'doNothing')); + // Try it with normal case + $action = MockArrayEntity::doNothing(); + // Ensure case was converted internally by the action class + $this->assertEquals('doNothing', $action->getActionName()); + $this->assertEquals('MockArrayEntity', $action->getEntityName()); + // PHP is case-insensitive so this will work $action = moCKarrayENTIty::DOnothING(); // Ensure case was converted internally by the action class -- 2.25.1