Marco Pivetta
a0c0d3bf2a
Revert "Merge branch 'fix/#6499-#6533-fix-commit-order-calculation-consider-all-join-column-fields'"
...
This reverts commit 2a58645cb5870f0ab61e918c7165c248d225dbac, reversing
changes made to 6d428c90e24c914c1e5d817d74646f3b94757c43.
2017-08-11 22:29:45 +02:00
Marco Pivetta
166c5816b6
#6499 #6533 calibrating test so that the association is populated after persistence in some edge cases
2017-08-11 22:10:02 +02:00
Marco Pivetta
25829ea450
#6499 #6533 simplifying test scenario to the bone, adding description of what happened at persistence-level
2017-08-11 22:05:00 +02:00
Marco Pivetta
ebd521c56e
#6499 #6533 minor CS fixes in the test
2017-08-11 21:55:02 +02:00
Marco Pivetta
b352cd3e22
#6499 #6533 minor CS fixes in the test
2017-08-11 21:54:30 +02:00
Gabe van der Weijde
da3cd04993
-- Transformed into a minimal example.
...
-- Processed Ocramius' feedback.
2017-08-11 21:51:17 +02:00
Gabe van der Weijde
16a14f2238
-- Created test for validation issue #6499 .
2017-08-11 21:51:17 +02:00
Marco Pivetta
9ad91ddc1c
#6464 #6475 using PHP 7.1 void
and string
return hints where available
2017-08-11 21:45:23 +02:00
Marco Pivetta
91a5091612
#6464 #6475 cleaning up test - removed invalid fetch join, CS
2017-08-11 21:39:13 +02:00
Stefan Siegl
025ed1147b
#6464 code review updates
2017-08-11 21:36:33 +02:00
Stefan Siegl
55882ca7a6
#6464 add test
2017-08-11 21:36:33 +02:00
Luís Cobucci
b960170fe1
Move test to the right place and add assertions
...
That test was removed from "performance" group but we forgot to move it
to the correct namespace.
It was also not doing any assertion, which is quite bad.
More info:
- https://github.com/doctrine/doctrine2/issues/3333
2017-08-06 12:51:58 +02:00
Jean Carlo Machado
c2167664fc
add test of NonUniqueResultException message presence
2017-08-06 12:08:57 +02:00
Marco Pivetta
88ea1d33fa
Full hydration + query benchmark
2017-07-23 10:16:24 +02:00
Luís Cobucci
6bf9f6f72f
Remove unnecessary annotation from test
2017-07-22 22:41:07 +02:00
Alessandro Frangioni
82c87081b4
Changed SQL declaration for custom type
2017-07-22 22:26:31 +02:00
Alessandro Frangioni
f6907b9503
Applied patches as for #6496
2017-07-22 22:26:31 +02:00
Luís Cobucci
8dccd27b52
Add the correct assertions for tests that don't have any
2017-06-12 23:05:55 +02:00
Luís Cobucci
19fc91482e
Validate if optimistic locks are released properly
...
By trying to update an entry using a different connection.
2017-06-12 23:05:52 +02:00
Luís Cobucci
1bf884970f
Increment assertion count manually
...
Which is needed to test void methods that shouldn't raise any exception
on a certain condition. If the interpreter gets to the point where the
assertion count is incremented it means that no exceptions have been
thrown and our test is successful.
Important to note that some tests were slighly refactored to simplify
things a bit.
2017-06-12 23:04:56 +02:00
Luís Cobucci
043ca69f0b
Fix some code style issues in tests
2017-06-12 23:04:54 +02:00
Maciej Kosiedowski
76f0fe45af
fixes in tests
2017-05-22 15:52:19 +02:00
Maciej Kosiedowski
f304685c68
Fix #6460 - \Doctrine\ORM\Mapping\ClassMetadataInfo::hasField should return true for embedded fields
2017-05-22 14:41:06 +02:00
bruno da silva
85a52d781e
add a not weel writend/nammed test testing Query::expireResultCache()
2017-05-02 23:25:56 +02:00
Marco Pivetta
2c1ebc4ef1
Merge pull request #6416 from lcobucci/fix-quote-on-inheritance
...
Fix quoting when using inheritance as well
2017-05-02 09:42:03 +02:00
Timothy Clissold
0a10f347d3
Fix inheritance join alias
2017-05-02 00:17:16 +02:00
Marcin Szulc
a360da5a7e
Fix lazy loading of 1-to-1 relationship with custom id object
...
Fixing case when lazy loading of entity in one-to-one relationship on the side without foreign key
did not return eht entity because of custom type not being detected and properly formatted before
applying to database query.
Closes https://github.com/doctrine/doctrine2/issues/5887
2017-04-30 19:53:28 +02:00
Luís Cobucci
0aef63b350
Fix quoting also when using inheritance
2017-04-30 19:36:41 +02:00
lemartin
7c6c5d87c8
Fix quoting issues related to ticket #6402
...
Apply quoting strategy to foreign key columns of one-to-one relation so
that correct select statements are generated. And use unquoted column
names in result mapping instead of quoted ones, as consumers (namely
IdentifierFlattener) expect unquoted column names.
2017-04-30 13:51:49 +02:00
Sam-Burns
5bd7bd8d48
Updating to PHPUnit 6
2017-03-31 21:59:02 +01:00
Boris Yonchev
bd1efaf528
DDC-2780 - Fixed issue with IS NULL on join aliases
2017-03-07 18:34:50 +01:00
Matteo Beccati
c816d375e8
Add missing group to DDC2660Test.php
...
With the current PHPUnit version and PHP 7.2/master, the test fails with:
1) Doctrine\Tests\ORM\Functional\Ticket\DDC2660Test::testIssueWithExtraColumn
array_flip(): Can only flip STRING and INTEGER values!
2) Doctrine\Tests\ORM\Functional\Ticket\DDC2660Test::testIssueWithoutExtraColumn
array_flip(): Can only flip STRING and INTEGER values!
Due to the group being NULL vs "" on older PHP versions.
I will also file a bug report or fix to PHPUnit and/or PHP itself, but it sounds
like the missing group was just a typo.
2017-01-24 12:46:19 +01:00
Luís Cobucci
1f53afa9cd
Make sure we're using the rootEntityName on all places
...
Otherwise we might end up with duplicated cache entries and weird
results (specially regarding associations).
2017-01-19 17:24:47 +01:00
Luís Cobucci
ba9fecc43f
Remove commented code that seems to not be important
2016-12-08 18:16:11 +01:00
Luís Cobucci
62d122bd54
Remove old "CLASSNAME" constants from test models
2016-12-08 18:15:48 +01:00
Luís Cobucci
fda6fdd9fb
Use "::class" syntax on "tests" directory
2016-12-08 18:13:39 +01:00
Luís Cobucci
74c8a08828
Use short-array syntax on "tests" directory
2016-12-07 23:33:41 +01:00
Marco Pivetta
cff5c07014
#5935 #5684 #6020 #6152 removed useless NAME
constant from the test
2016-11-27 17:49:09 +01:00
Marco Pivetta
73ea0ba8f3
#5935 #5684 #6020 #6152 adding description to the test scenario
2016-11-27 17:45:50 +01:00
Christian Hammerl
0a86c324ad
Add test case for autoincremented id of custom type
2016-11-27 01:45:56 +01:00
Luís Cobucci
6344fd34cb
Improving the documentation of enums as discriminators test
...
@Ocramius was too eager to merge stuff
Related to: https://github.com/doctrine/doctrine2/pull/6141
2016-11-23 19:20:47 +01:00
Luís Cobucci
1b39cd87ad
Allow using objects as discriminators
2016-11-23 18:56:36 +01:00
Jefersson Nathan
dbe843fc4b
remove license from header of test files
2016-10-26 13:24:33 -03:00
Carl Vuorinen
d2cbd5e872
PR fixes (public properties & correct letter case in annotations)
2016-09-08 13:37:00 +02:00
Carl Vuorinen
12b5e79ff2
Create a failing test for issue #5989
...
Field with type=simple_array in a joined inheritance gets overridden by empty array in the hydrator
2016-09-08 13:37:00 +02:00
Marco Pivetta
50f321f2e9
#5975 minor test cleanups
2016-09-07 23:18:39 +02:00
Alexander Kurilo
74ec055d57
Use ::class const instead of FQCN string ( #5762 )
2016-09-07 23:15:00 +02:00
Alexander Kurilo
c6ea8b1129
Remove irrelevant accessors ( #5762 )
2016-09-07 23:15:00 +02:00
John Keller
3bec698fed
add functional test and bug fix for issue #5762
2016-09-07 23:15:00 +02:00
Marco Pivetta
18e3cb4440
#5867 @group
annotations, describing scenario
2016-06-19 12:44:19 +02:00