Skip to content

Instantly share code, notes, and snippets.

@minthemiddle
Created December 31, 2019 13:21
Show Gist options
  • Select an option

  • Save minthemiddle/b1fe67c0019ffcc5e448e8ee9378d7c4 to your computer and use it in GitHub Desktop.

Select an option

Save minthemiddle/b1fe67c0019ffcc5e448e8ee9378d7c4 to your computer and use it in GitHub Desktop.
191231-failure
FAILURES!
Tests: 1, Assertions: 4, Failures: 1.
PHPUnit\Framework\ExpectationFailedException : Failed asserting that '<!doctype html>\n
<html lang="en">\n
<head>\n
<meta charset="utf-8">\n
<meta name="viewport" content="width=device-width, initial-scale=1">\n
\n
<!-- CSRF Token -->\n
<meta name="csrf-token" content="gUOhJ1FrFQDuOqKQP3oL0VRud6jHTNIvj7CbjdHj">\n
\n
<title>Netzwerk</title>\n
\n
<!-- Styles -->\n
<link href="/css/app.css" rel="stylesheet">\n
</head>\n
<body class="bg-gray-100 h-screen antialiased leading-none">\n
<div id="app">\n
<nav class="bg-gray-300 shadow mb-8 py-6">\n
<div class="container mx-auto px-6 md:px-0">\n
<div class="flex items-center justify-center">\n
<div class="mr-6">\n
<a href="http://netwerk.test/contact" class="text-lg font-semibold text-gray-600 no-underline">\n
Netzwerk\n
</a>\n
</div>\n
<div class="flex-1 text-right">\n
<a class="no-underline hover:underline text-gray-600 text-sm p-3" href="http://netwerk.test/login">Login</a>\n
<a class="no-underline hover:underline text-gray-600 text-sm p-3" href="http://netwerk.test/register">Register</a>\n
</div>\n
</div>\n
</div>\n
</nav>\n
\n
<div class="container mx-auto px-6 md:px-0">\n
\n
\n
<form action="http://netwerk.test/contact/1" method="POST">\n
<input type="hidden" name="_method" value="PUT"> <input type="hidden" name="_token" value="gUOhJ1FrFQDuOqKQP3oL0VRud6jHTNIvj7CbjdHj"> <label class="block mt-4">\n
<p class="text-sm text-gray-800">Firstname</p>\n
<input type="text" class="mt-2 form-input" name="firstname" value="Katrina" required>\n
</label>\n
\n
<label class="block mt-4">\n
<p class="text-sm text-gray-800">Lastname</p>\n
<input type="text" class="mt-2 form-input" name="lastname" value="Von">\n
</label>\n
\n
<label class="block mt-4">\n
<p class="text-sm text-gray-800">E-Mail</p>\n
<input type="email" class="mt-2 form-input" name="email" value="[email protected]">\n
</label>\n
\n
<label class="block mt-4">\n
<p class="text-sm text-gray-800">Birthdate</p>\n
<input type="date" class="mt-2 form-input" name="birthdate" value="1999-11-17">\n
</label>\n
\n
<div class="mt-4">\n
<p class="text-sm text-gray-800">Priority</p>\n
<select name="priority" id="priority" class="form-select">\n
<option value="0" >Top5</option>\n
<option value="1" >Top50</option>\n
<option value="2" selected>Top100</option>\n
</select>\n
</div>\n
\n
<div class="mt-4">\n
<button type="submit" class="p-2 bg-blue-200">Change contact</button>\n
</div>\n
\n
</form>\n
\n
<div class="mt-4">\n
<ul class="list-disc">\n
<code>{&quot;id&quot;:1,&quot;contact_id&quot;:&quot;1&quot;,&quot;type&quot;:&quot;0&quot;,&quot;body&quot;:&quot;Long sentence&quot;,&quot;created_at&quot;:&quot;2019-12-31 13:14:10&quot;,&quot;updated_at&quot;:&quot;2019-12-31 13:14:10&quot;}</code>\n
<li>0, : Long sentence</li>\n
</ul>\n
</div>\n
\n
<div class="mt-4">\n
<form action="http://netwerk.test/note" method="POST">\n
<input type="hidden" name="_token" value="gUOhJ1FrFQDuOqKQP3oL0VRud6jHTNIvj7CbjdHj"> <input type="hidden" name="contact_id" value="1">\n
<input type="hidden" name="type" value="0">\n
<textarea name="body" class="form-textarea block" cols="30" rows="10"></textarea>\n
<button type="submit" class="mt-2 p-2 bg-blue-200">Add note</button>\n
</form>\n
</div>\n
</div>\n
\n
</div>\n
\n
<!-- Scripts -->\n
<script src="/js/app.js"></script>\n
</body>\n
</html>\n
' contains "Interaction".
at /Users/martinbetz/Sites/netzwerk/tests/Feature/Http/Controllers/ContactControllerTest.php:26
22| $response = $this->get(route('contact.show', $contact));
23| $response->assertSee(e($note->body));
24| $this->assertEquals('Interaction', NoteType::getDescription(0));
25| $this->assertEquals(0, $note->type);
> 26| $response->assertSee(NoteType::getDescription($note->type));
27| }
28|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment