There is a common and reasonable need for longer lines in tests.
The nudge for shorter lines doesn't seem valuable here. The natural
breaks will likely still fall in 80-100 given the enforced practice
for non-test code, e.g. whether through habit, or 80-100 column markers
in text editors, or the finite width of diff and code review
interfaces.
Change-Id: I879479e13551789a67624ce66f0946d2f185e6ee
Add support for MySQL's per-table syntax for straight joins, which is
a join type analogous to LEFT JOIN.
SelectQueryBuilder::straightJoin() previously enabled the whole-query
straight join option, but it makes more sense for it to work analogously
with leftJoin(). So I renamed the existing method to
straightJoinOption(). No callers found in CodeSearch.
The motivation is to allow us to prevent reordering of the change_tag
join without affecting the rest of the recentchanges query.
Bug: T298225
Change-Id: I2bfcffc2bf9a64f23afdea0dfaccf89938896e62
If where() is called multiple times with the same key in the array,
don't overwrite the previous condition value. Instead, append a
condition which will typically prevent the query from matching any
rows.
Bug: T288882
Change-Id: I67da6e818b0b9a71f87dd4ca94bc6939cf0bfe94
* parent::setUp() should be first, and ::tearDown()
should be last
* Move tests that directly extend PHPUnit\Framework\TestCase
to /unit
Change-Id: I1172855c58f4f52a8f624e6d596ec43beb8c93ff
2020-12-24 00:52:06 +00:00
Renamed from tests/phpunit/includes/libs/rdbms/querybuilder/SelectQueryBuilderTest.php (Browse further)