Make WordPress Core


Ignore:
Timestamp:
05/11/2023 10:05:51 AM (2 years ago)
Author:
spacedmonkey
Message:

Tests: Use the function get_num_queries across all unit tests.

Replace use of $wpdb->num_queries with a function call to get_num_queries. This improves readability and consistency between tests.

Props SergeyBiryukov, peterwilsoncc, spacedmonkey.
See #57841.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package-lock.json

    r55737 r55745  
    1195511955            "version": "1.1.0",
    1195611956            "resolved": "https://registry.npmjs.org/from2-string/-/from2-string-1.1.0.tgz",
    11957             "integrity": "sha512-m8vCh+KnXXXBtfF2VUbiYlQ+nczLcntB0BrtNgpmLkHylhObe9WF1b2LZjBBzrZzA6P4mkEla6ZYQoOUTG8cYA==",
     11957            "integrity": "sha1-GCgrJ9CKJnyzAwzSuLSw8hKvdSo=",
    1195811958            "requires": {
    1195911959                "from2": "^2.0.3"
     
    2111321113            "version": "1.1.6",
    2111421114            "resolved": "https://registry.npmjs.org/promise-polyfill/-/promise-polyfill-1.1.6.tgz",
    21115             "integrity": "sha512-7rrONfyLkDEc7OJ5QBkqa4KI4EBhCd340xRuIUPGCfu13znS+vx+VDdrT9ODAJHlXm7w4lbxN3DRjyv58EuzDg=="
     21115            "integrity": "sha1-zQTv9G9clcOn0EVZHXm14+AfEtc="
    2111621116        },
    2111721117        "prompts": {
     
    2325223252            "version": "1.0.0",
    2325323253            "resolved": "https://registry.npmjs.org/stream-from-promise/-/stream-from-promise-1.0.0.tgz",
    23254             "integrity": "sha512-j84KLkudt+gr8KJ21RB02btPLx61uGbrLnewsWz6QKmsz8/c4ZFqXw6mJh5+G4oRN7DgDxdbjPxnpySpg1mUig=="
     23254            "integrity": "sha1-djaH9913fkyJT2QIMz/Gs/yKYbs="
    2325523255        },
    2325623256        "stream-to-string": {
     
    2452024520            "version": "2.0.2",
    2452124521            "resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz",
    24522             "integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg=="
     24522            "integrity": "sha1-riF2gXXRVZ1IvvNUILL0li8JwzA="
    2452324523        },
    2452424524        "totalist": {
Note: See TracChangeset for help on using the changeset viewer.