diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..6c454a6 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,11 @@ +coverage: + status: + project: + default: + informational: true + patch: + default: + informational: true +comment: + layout: "reach, diff, flags" + require_changes: true diff --git a/tests/Models/BasicModel.php b/tests/Models/BasicModel.php new file mode 100644 index 0000000..1fe2131 --- /dev/null +++ b/tests/Models/BasicModel.php @@ -0,0 +1,11 @@ +resolveRouteBinding($m->hash); $this->assertTrue($resolved->is($m)); + + // revert to original + $m = new BasicModel(); + $m->save(); + + $resolved = $m->resolveRouteBinding($m->getKey()); + $this->assertTrue($resolved->is($m)); } protected function getRepository(): Repository