Skip to content

Commit bc9b4ce

Browse files
committed
Use CamelCase for getter and setter
1 parent 8843412 commit bc9b4ce

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

templates/crud/test/Test.EntityManager.tpl.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testShow(): void
6161
$this->markTestIncomplete();
6262
$fixture = new <?= $entity_class_name; ?>();
6363
<?php foreach ($form_fields as $form_field => $typeOptions): ?>
64-
$fixture->set<?= ucfirst($form_field); ?>('My Title');
64+
$fixture->set<?= Str::asCamelCase($form_field); ?>('My Title');
6565
<?php endforeach; ?>
6666

6767
$this->manager->persist($fixture);
@@ -80,7 +80,7 @@ public function testEdit(): void
8080
$this->markTestIncomplete();
8181
$fixture = new <?= $entity_class_name; ?>();
8282
<?php foreach ($form_fields as $form_field => $typeOptions): ?>
83-
$fixture->set<?= ucfirst($form_field); ?>('Value');
83+
$fixture->set<?= Str::asCamelCase($form_field); ?>('Value');
8484
<?php endforeach; ?>
8585

8686
$this->manager->persist($fixture);
@@ -99,7 +99,7 @@ public function testEdit(): void
9999
$fixture = $this-><?= lcfirst($entity_var_singular); ?>Repository->findAll();
100100

101101
<?php foreach ($form_fields as $form_field => $typeOptions): ?>
102-
self::assertSame('Something New', $fixture[0]->get<?= ucfirst($form_field); ?>());
102+
self::assertSame('Something New', $fixture[0]->get<?= Str::asCamelCase($form_field); ?>());
103103
<?php endforeach; ?>
104104
}
105105

@@ -108,7 +108,7 @@ public function testRemove(): void
108108
$this->markTestIncomplete();
109109
$fixture = new <?= $entity_class_name; ?>();
110110
<?php foreach ($form_fields as $form_field => $typeOptions): ?>
111-
$fixture->set<?= ucfirst($form_field); ?>('Value');
111+
$fixture->set<?= Str::asCamelCase($form_field); ?>('Value');
112112
<?php endforeach; ?>
113113

114114
$this->manager->persist($fixture);

0 commit comments

Comments
 (0)