Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Delete tests restored #10

Merged
merged 6 commits into from
Mar 8, 2014
Merged

Delete tests restored #10

merged 6 commits into from
Mar 8, 2014

Conversation

sdebacker
Copy link
Collaborator

The tests failed because of that SQLite doesn't support foreign keys without PRAGMA foreign_keys = ON
I had to separate tests on softdeletes, I don't know why it failed without that.

@dimsav
Copy link
Owner

dimsav commented Mar 8, 2014

Is there a reason you deleted these lines from the tests?

I have trouble making this test passing as well.

@sdebacker
Copy link
Collaborator Author

I didn't understand why test fails, I moved these lines in a new test and it passes.
I just added 1 more test for City model with FK constraint.

@dimsav
Copy link
Owner

dimsav commented Mar 8, 2014

I found why the test fails. $country->forceDelete() is not removing the row from the database. Weird.

@dimsav
Copy link
Owner

dimsav commented Mar 8, 2014

It seems to be a laravel bug. If a model is soft deleted and you apply a forceDelete to it, it won't get removed from the database. I will open an issue.

dimsav added a commit that referenced this pull request Mar 8, 2014
@dimsav dimsav merged commit 26e399b into dimsav:master Mar 8, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants