Skip to content

Instantly share code, notes, and snippets.

Namespace/Module/view/adminhtml/requirejs-config.js
--
var config = {
config: {
mixins: {
'mage/validation': {
'Namespace_Module/js/form/validation/validate-greater-than-field-value': true
}
}
}
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Inventory\Test\Integration;
use Magento\InventoryApi\Api\ReservationBuilderInterface;
use Magento\TestFramework\Helper\Bootstrap;
use PHPUnit\Framework\TestCase;
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Inventory\Test\Integration;
use PHPUnit\Framework\TestCase;
class FixtureTest extends TestCase
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
define([
'Magento_Ui/js/grid/columns/column',
'jquery',
'mage/template',
'text!Magento_MultipleLocationInventory/template/grid/cells/qty/info.html',
'mage/translate'
<!--
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<!-- ko if: ($col.isQtyDetailsAvailable($row()))-->
<div data-bind="css: {'admin__field-tooltip admin__field-tooltip-inventory': true, 'admin__field-tooltip-warning': ($col.isLowStock($row()))}">
<span text="$col.getLabel($row())"/>
<span class="admin__field-tooltip-action action-help"/>
<!--
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<div class="qty-details" data-role="qty-details">
<table class="table-qty-details">
<tr>
<th class="col-qty-deatils-title"><%- data.sourceTitle %></th>
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<listingToolbar name="listing_top">
<argument name="data" xsi:type="array">
From 4ff6fa558a6333d6828ddd0719da07e708709e87 Mon Sep 17 00:00:00 2001
From: Igor Melnykov <melnykov@adobe.com>
Date: Wed, 1 Aug 2018 22:18:58 -0500
Subject: [PATCH] Add support for @magentoApiConfigFixture in web api tests
---
.../Annotation/ApiConfigFixture.php | 27 ++++
.../TestFramework/App/MutableScopeConfig.php | 125 ++++++++++++++++++
.../Bootstrap/WebapiDocBlock.php | 4 +-
.../Annotation/ConfigFixture.php | 9 +-
{
products (search: "simple") {
total_count
items {
... on PhysicalProductInterface {
weight
}
attribute_set_id
categories
{
<?xml version="1.0" encoding="UTF-8"?>
12:03:14 [WebAPI SOAP-Tests-CE] <!--
12:03:14 [WebAPI SOAP-Tests-CE] /**
12:03:14 [WebAPI SOAP-Tests-CE] * PHPUnit configuration for Web API functional tests CI build.
12:03:14 [WebAPI SOAP-Tests-CE] *
12:03:14 [WebAPI SOAP-Tests-CE] * Copyright © Magento, Inc. All rights reserved.
12:03:14 [WebAPI SOAP-Tests-CE] * See COPYING.txt for license details.
12:03:14 [WebAPI SOAP-Tests-CE] */
12:03:14 [WebAPI SOAP-Tests-CE] -->
12:03:14 [WebAPI SOAP-Tests-CE] <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"