/** * Test get name by plugin alias. * * @return void */ public function testGetNameByAlias() { $this->assertSame('Custom', Plugin::getNameByAlias('Custom')); $this->assertSame('Custom', Plugin::getNameByAlias('Custom ')); $this->assertSame('Custom', Plugin::getNameByAlias(' Custom ')); $this->assertSame('Example', Plugin::getNameByAlias('example')); $this->assertSame('Union/Core', Plugin::getNameByAlias('Union-core')); $this->assertSame('TestPlugin', Plugin::getNameByAlias('test_plugin')); $this->assertSame('Union/Community', Plugin::getNameByAlias('union-Community')); $this->assertSame('Union/Extensions', Plugin::getNameByAlias('union-extensions')); }