1
0
mirror of synced 2025-02-03 13:59:27 +03:00

913 Commits

Author SHA1 Message Date
Marco Pivetta
4884183b95 #1169 DDC-3343 - fixing test case typos (referencing wrong/inexisting properties, inexisting owning side assigned 2015-02-05 00:16:58 +00:00
Marco Pivetta
fac410b213 #1169 DDC-3343 - aligning test suite logic to the 2.5 branch (failing tests) 2015-02-05 00:16:07 +00:00
Marco Pivetta
cbe5575f38 #1169 DDC-3343 - adding tests for orphan-removal + extra-lazy + one-to-many element removal behavior 2015-02-05 00:15:18 +00:00
Marco Pivetta
94c0e46c96 #1169 DDC-3343 - updating test expectations - one-to-many changes should be no-op unless orphan removal is specified. 2015-02-05 00:14:19 +00:00
Marco Pivetta
af59ea962f #1169 DDC-3343 - updating test expectations - one-to-many changes should be no-op unless orphan removal is specified. 2015-02-05 00:14:11 +00:00
Marco Pivetta
51250e987e #1169 DDC-3343 - moved tests to correct test class 2015-01-24 12:51:19 +01:00
Marco Pivetta
c4b59b4eb0 #1169 DDC-3343 - adapting patch to 2.4 branch 2015-01-24 12:50:10 +01:00
Marco Pivetta
daca81861c #1169 DDC-3343 - additional test cases: removing proxies from an extra-lazy collection still updates the owning side values 2015-01-24 12:38:51 +01:00
Marco Pivetta
52fbe35bc7 #1169 DDC-3343 - correcting query count assertions on extra-lazy specific tests (some DELETE operations became UPDATE operations)
Conflicts:
	lib/Doctrine/ORM/Persisters/Collection/OneToManyPersister.php
	tests/Doctrine/Tests/ORM/Functional/ExtraLazyCollectionTest.php
2015-01-24 12:38:44 +01:00
Marco Pivetta
50ac97e72d #1169 DDC-3343 - removing duplicate test 2015-01-24 12:37:41 +01:00
Marco Pivetta
cfed92a5cf #1169 DDC-3343 - integrating tests into the existing test suite
Conflicts:
	tests/Doctrine/Tests/ORM/Functional/ValueConversionType/OneToManyExtraLazyTest.php
2015-01-24 12:37:21 +01:00
Marco Pivetta
d69fd91454 #1169 DDC-3343 - importing used classe 2015-01-24 12:36:18 +01:00
Marco Pivetta
41258deed7 #1169 DDC-3343 - optimized imports 2015-01-24 12:36:10 +01:00
Marco Pivetta
193ec51607 #1169 DDC-3343 - refactoring test to use pre-existing test models 2015-01-24 12:36:01 +01:00
Marco Pivetta
24ebfb69cb #1169 DDC-3343 - minor refactoring: constant over string reference 2015-01-24 12:34:10 +01:00
Andrea Sprega
a88550a70c [DDC-3343] Failing test case (updated) 2015-01-24 12:32:30 +01:00
Andrea Sprega
ee246af7e3 [DDC-3343] Failing test case 2015-01-24 12:32:17 +01:00
Marco Pivetta
56c5cb41fc DDC-3518 - Schema creation statement is not quoted 2015-01-18 17:39:10 +01:00
Guilherme Blanco
e0077b290b ORM side fixes. 2015-01-18 17:09:29 +01:00
Carnage
4e4637de2e Added test to demonstrate issue 2015-01-13 02:35:44 +01:00
Marco Pivetta
78770f9da8 #1188 - assertCount instead of assertEquals 2014-11-28 12:16:05 +01:00
Marco Pivetta
2f57c4fef9 #1188 - minor CS fixes (avoiding DQL one-liner) 2014-11-28 12:15:53 +01:00
Marco Pivetta
684ae859ce #1188 - accessing Doctrine\ORM\Tools\Pagination\Paginator#getCountQuery() via reflection for test purposes 2014-11-28 12:15:46 +01:00
Merixstudio
7c02af8896 Filtering by auto-increnement field causes test error.
Executing the same test many times causes error because AI fields.
2014-11-28 12:15:07 +01:00
Merixstudio
61c18ce046 Testing SQLs in functional test is not necessary 2014-11-28 12:14:49 +01:00
Merixstudio
7f5620a41c Test parameter removing parameters passed to select part of query. 2014-11-28 12:14:40 +01:00
Marco Pivetta
42226dadd1 DDC-3208 - hotfix for DDC-3160 backported to 2.4.x 2014-07-11 04:49:30 +02:00
Marco Pivetta
8b5632cb65 The proxy factory always expects non-null identifier values 2014-06-10 13:48:35 +02:00
Guilherme Blanco
2ae245db30 Fixes DDC-2984. Made DDC-742 more resilient to recurring failures. 2014-04-16 23:41:53 +02:00
Benjamin Eberlei
8b75e3563a [DDC-2996] Fix bug in UnitOfWork#recomputeSingleEntityChangeSet
When calling UnitOfWork#recomputeSingleEntityChangeSet on an entity
that didn't have a changeset before, the computation was ignored.
This method however is suggested to be used in "onFlush" and "preFlush"
events in the documentation.

Also fix a bug where recomputeSingleEntityChangeSet was used
before calculating a real changeset for an object.
2014-03-23 13:19:22 +01:00
Benjamin Eberlei
55b7e4cff2 [DDC-3033] Fix bug in UnitOfWork#recomputeSingleEntityChangeSet.
The fix for DDC-2624 had a side effect on recomputation of
changesets in preUpdate events. The method wasn't adjusted
to the changes in its sister method computeChangeSet() and
had wrong assumptions about the computation.

Especially:
1. Collections have to be skipped
2. Comparison was changed to strict equality only.
2014-03-23 12:38:51 +01:00
Thomas Lallement
e38af55100 Update DDC3033Test.php 2014-03-23 12:38:51 +01:00
Thomas Lallement
7338c2d1f8 Update DDC3033Test.php 2014-03-23 12:38:51 +01:00
Thomas Lallement
0ff3cdf150 Failing Test (since commit 53a5a48aed7d87aa1533c0bcbd72e41b686527d8)
Hi,

It seems to be a regression since the commit 53a5a48aed

Doctrine\ORM\PersistentCollection can be populated in $changeSet if you set a PreUpdate and PostUpdate event.

Original issue: http://www.doctrine-project.org/jira/browse/DDC-3033
2014-03-23 12:38:51 +01:00
Benjamin Eberlei
b9c6659b70 Fix tests in 2.4 branch 2014-02-09 14:29:45 +01:00
Benjamin Eberlei
5c06121d94 [DDC-2624] Fix bug when persistent collection is cloned and used in a new entity. 2014-02-09 14:27:54 +01:00
Geoffrey Wagner
d9b0c87ded Fix some code standard things 2014-02-08 16:01:41 +01:00
Geoffrey Wagner
8594e5c4da Add a test
addLifecycleCallback now only allows a callback once so we do not hook them twice
2014-02-08 16:01:41 +01:00
Marco Pivetta
b596bbb29f DDC-2931 - adding test that verifies that fetch-joined entities get refreshed with hints 2014-02-08 15:52:46 +01:00
Marco Pivetta
c204e6c6a1 DDC-2931 - removing old comments 2014-02-08 15:52:46 +01:00
Marco Pivetta
f37856829f DDC-2931 - Detailed explanation 2014-02-08 15:52:45 +01:00
Marco Pivetta
157c793810 DDC-2931 - cleaning up code formatting/simplifying test case 2014-02-08 15:52:45 +01:00
root
72d838a804 [DDC-2931] testcase to reproduce Jira 2931 2014-02-08 15:52:45 +01:00
Benjamin Eberlei
b40866c624 [DDC-2775] cleanup test. 2014-01-02 23:11:07 +01:00
Matthieu Napoli
a89cc7abea Inlined the model for the DCC2775 test case inside the test class 2014-01-02 23:07:53 +01:00
Matthieu Napoli
5ac111e5f8 Cleaned up tests for DDC-2775 2014-01-02 23:07:53 +01:00
Matthieu Napoli
65bcdbf4c7 [DDC-2775] Tests reproducing DDC-2775 2014-01-02 23:07:53 +01:00
Stefan Kleff
3657df3b01 Listener class prefix 2014-01-02 22:16:59 +01:00
Stefan Kleff
1661ffae9a removed unused use statements, fixed typo and group tag 2014-01-02 22:16:59 +01:00
Stefan Kleff
b424a5cf14 Added unit test 2014-01-02 22:16:59 +01:00