Skip to content

Commit 489de93

Browse files
author
Hannes Funk
committed
MBS-10346: Correctly name functions
1 parent 725e8de commit 489de93

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/local/tenant_test.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ final class tenant_test extends \advanced_testcase {
2828
/**
2929
* Tests the validation of identifier string in the tenant constructor.
3030
*
31-
* @dataProvider identifier_provider
31+
* @dataProvider tenant_name_validation_provider
3232
* @covers \local_ai_manager\local\tenant::__construct
3333
*/
34-
public function test_validation($name, $valid): void {
34+
public function test_tenant_name_validation($name, $valid): void {
3535
if ($valid) {
3636
$tenant = new \local_ai_manager\local\tenant($name);
3737
$this->assertSame($name, $tenant->get_identifier());
@@ -44,9 +44,9 @@ public function test_validation($name, $valid): void {
4444
/**
4545
* Data provider.
4646
*
47-
* @return array
47+
* @return array identifiers with name and validity
4848
*/
49-
public static function identifier_provider(): array {
49+
public static function tenant_name_validation_provider(): array {
5050
return [
5151
'default_identifier' => [
5252
'name' => 'default',
@@ -60,7 +60,7 @@ public static function identifier_provider(): array {
6060
'name' => 'Maths Department',
6161
'valid' => true,
6262
],
63-
'identifier_with_hypen_and_numbers' => [
63+
'identifier_with_hyphen_and_numbers' => [
6464
'name' => 'School-123 Munich',
6565
'valid' => true,
6666
],

0 commit comments

Comments
 (0)