Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions templates/crud/test/Test.EntityManager.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public function testIndex(): void

public function testNew(): void
{
$this->markTestIncomplete();
$this->client->request('GET', sprintf('%snew', $this->path));

self::assertResponseStatusCodeSame(200);
Expand All @@ -54,11 +53,12 @@ public function testNew(): void
self::assertResponseRedirects('<?= $route_path; ?>');

self::assertSame(1, $this-><?= lcfirst($entity_var_singular); ?>Repository->count([]));

$this->markTestIncomplete('This test was generated');
}

public function testShow(): void
{
$this->markTestIncomplete();
$fixture = new <?= $entity_class_name; ?>();
<?php foreach ($form_fields as $form_field => $typeOptions): ?>
$fixture->set<?= ucfirst($form_field); ?>('My Title');
Expand All @@ -73,11 +73,11 @@ public function testShow(): void
self::assertPageTitleContains('<?= ucfirst($entity_var_singular); ?>');

// Use assertions to check that the properties are properly displayed.
$this->markTestIncomplete('This test was generated');
}

public function testEdit(): void
{
$this->markTestIncomplete();
$fixture = new <?= $entity_class_name; ?>();
<?php foreach ($form_fields as $form_field => $typeOptions): ?>
$fixture->set<?= ucfirst($form_field); ?>('Value');
Expand All @@ -101,11 +101,12 @@ public function testEdit(): void
<?php foreach ($form_fields as $form_field => $typeOptions): ?>
self::assertSame('Something New', $fixture[0]->get<?= ucfirst($form_field); ?>());
<?php endforeach; ?>

$this->markTestIncomplete('This test was generated');
}

public function testRemove(): void
{
$this->markTestIncomplete();
$fixture = new <?= $entity_class_name; ?>();
<?php foreach ($form_fields as $form_field => $typeOptions): ?>
$fixture->set<?= ucfirst($form_field); ?>('Value');
Expand All @@ -119,5 +120,7 @@ public function testRemove(): void

self::assertResponseRedirects('<?= $route_path; ?>');
self::assertSame(0, $this-><?= lcfirst($entity_var_singular); ?>Repository->count([]));

$this->markTestIncomplete('This test was generated');
}
}